How to detect clientside modification of the text in an asp:button

  • Thread starter Thread starter WT
  • Start date Start date
W

WT

Hello,

..NET 2, aspx, visual studio 2005.
I need to enable a button when text in a textbox is modified.
How to put some javascript code that will be triggered and enable the button
?

Thanks for help
CS
 
Hello,

.NET 2, aspx, visual studio 2005.
I need to enable a button when text in a textbox is modified.
How to put some javascript code that will be triggered and enable the button
?

Thanks for help
CS

something like this:

myTextBox.Attributes.Add("onchange",
"document.getElementById("myButton').disabled=false;return false;");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top