Friday, May 21, 2010

How can i enable or disable a checkbox in vbscript for asp.?

plz send me a sample code for this. Im calling a function and within that function i have to enable or disable the checkbox.That function is a vbscript function for asp.

How can i enable or disable a checkbox in vbscript for asp.?
Checkbox.enabled = true


Checkbox.enabled = false
Reply:I have not dabbled in vbscript a lot but I have done a fair amount of javascript





function disableCheckbox()


{


var chkbox = document.getelementbyId('%26lt;%= chkbox.ClientID %%26gt;');





chkbox.disable = true // this disables your checkbox


chkbox.diable = false //this enables your checkbox


}


No comments:

Post a Comment