How to enable a linkbutton server control using javascript?
- by satyaj
I have a linkbutton server control in my page whose Enabled attribute is initially set to "false". When a text box's text changes I would like to enable the linkbutton. I tried the following but it does not work. Could you let me know if i am missing something.
function TextBox_TextChanged()
{
var control = $get("<%= linkButtonSave.ClientID%>");
if(control != null)
control.enabled = true;
}
Thanks