Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable ASP button

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
I have an asp button on a page that is disabled by default.

I want to create a function that OnKeyPress event of a text box the button will get enabled.

I've tried a few different options but nothing works.


document.getElementById('Button1').disabled = '';

var btn = document.getElementById("<%=Button1.ClientID %>");

btn.enabled=(true);

any help would be appreciated

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top