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

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
 
G

Guest

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top