I have an html button, and I have dynamically disabled it using the following property values
disabled="disabled"
How can i make it work again? i dont want to make it disabled now
You can just set the disabled
property to false
in JavaScript, like this:
document.getElementById("myId").disabled = false;
var e = document.getElementById("someElement");
e.removeAttribute("disabled");
and disable again,
e.setAttribute('disabled','disabled');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With