How to enable checkbox in JavaScript

{0 Comments}

To enable checkbox in JavaScript you can the same script which you can use to disable checkbox 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 checkbox first then apply following syntax. 

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

Leave a Comment

Your email address will not be published.