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
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