Tuesday, September 30, 2014

How To Disable Checkbox using JavaScript

To Disable HTML checkbox using javascript use the following script

document.getElementById("chkRed").disabled = true;

To Enable change true to false

document.getElementById("chkRed").disabled = false;

where chkRed is the id of your Checkbox

I hope it was informative for you and I would like to Thank you for reading

No comments:

Post a Comment