Enabled / Disabled Any Control using javascript

For enable ,
document.getElementById('Control_name').disabled = false;

For disable,
document.getElementById('Control_name').disabled = true;



Lets take example of button:

For enable the button,
document.getElementById('Button1').disabled = false;

For disable the button,
document.getElementById('Button1').disabled = true;

Ebook Download
View all
Learn
View all