Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi,
i am trying to enable an checkbox using java script but its noet working can any one please help me out on this.

i have tried this also

document.getElementById("ChkMtpAttach").InputAttributes.Add("enabled", "enabled");
bt this also not working....

Thanks
Posted

Try this
document.getElementById("ChkMtpAttach").disabled=true;
document.getElementById("ChkMtpAttach").disabled=false;
 
Share this answer
 
Instead of "enabled" try "disabled" attribute.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900