Disable checkbox not working?



I tried using disable=true on checkbox while using html and jquery. It didn’t work
Suggestions please.
Thanks, in advance


If you are using jquery on check box then try

$(check box selector).prop("disabled", true);
$(check box selector).prop("disabled", false);

Please change “check box selector” with your check box id or input type.

This will surely work


Thanks Yayati_raj for the suggestion .!!