How can i enable or disable a ASP.NET checkbox control using javascript?

liunx

Guest
How can i enable or disable a ASP.NET checkbox control using javascript?

can any one help

thanksenable or disable like checked or unchecked or just greying them out?

if it's the latter, then use document.forms[0].MyCheckbox.disabled = false/true;

if it's hidding them, use CSS; and if it's checking and unchecking them, use

document.forms[0].MyCheckbox.checked = true/false;

cheers
 
Back
Top