How to enable button in JavaScript

{0 Comments}

To enable button in JavaScript you can the same script which you can use to disable button but only thing which you change it the Boolean value to false as show in the following function.  To do this the value is get the element id of button first then apply following syntax. 

 Javascript |  copy code |? 
1
function enable() {
2
           document.getElementById( "Button ID" ).disabled = 'false';
3
        }
4

Leave a Comment

Your email address will not be published.