Remove disabled attribute using jQuery

<!DOCTYPE html>

<html>

<head>

         <title></title>

         <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

</head>

<body>

 

         <input type="text" name=""value="caroline"disabled>

         <button>enable</button>

<script type="text/javascript">

         $("button").click(function()

         {

                 $("input").removeAttr("disabled");

         })

 

 

</script>

</body>

</html>


Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post