Saved X
Google login
SignUp with Email
X

Jquery button remove disabled attribute

theindreshverma ( Edited  Sep 29, 11:45 pm )
Login

Jquery prop() method

<html>
<head>
    <title>Jquery button remove disabled attribute</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
</head>
<body>

<h1>Jquery button remove disabled attribute</h1>

<button id="b" disabled>click me remove disable attribute</button>

<script>
$('#b').click(function() {
   $('#b').prop('disabled', false);
});
</script>

</body>
</html>

Sourcecode Tags

More Sourcecodes

More Sourcecodes