button disable
-
hi there, i need to know how to disable button when page load and should be enable once the user keyin the textbox. any sample code will be appreciated. regards Ybasha
Write Javascript function on textbox focus.
-
Write Javascript function on textbox focus.
-
ha ha ha very funny dont u think i dont know that, am looking for script sample code. i tried the below one not working. btnSubmit.Attributes.Add("onclick", "this.disabled=true;" + GetPostBackEventReference(btnSubmit).ToString());
Very Good but as u said u want to make it enable when user keyin in textbox then why r u adding javascript code on button??? Try to Textbox1.Attributes.Add("onfocus", "GetEnable();"); and function GetEnable() { document.getclientElementID("Button1").disable = false; } Just check the syntax...
-
Very Good but as u said u want to make it enable when user keyin in textbox then why r u adding javascript code on button??? Try to Textbox1.Attributes.Add("onfocus", "GetEnable();"); and function GetEnable() { document.getclientElementID("Button1").disable = false; } Just check the syntax...
-
hi thanks for the code but the function GetEnable() { document.getclientElementID("Button1").disable = false; } is not working.....am using VS2003... document.getclientElementID is not working
Have u tried this: document.getElementById("Button1").disable = false;
-
hi thanks for the code but the function GetEnable() { document.getclientElementID("Button1").disable = false; } is not working.....am using VS2003... document.getclientElementID is not working
which browser u use
Piyush Vardhan Singh Senior Software Engineer TAS NewDelhi India
-
which browser u use
Piyush Vardhan Singh Senior Software Engineer TAS NewDelhi India
-
Have u tried this: document.getElementById("Button1").disable = false;
hi there, Thanks for the support but the script "document.getElementById("Button1").disable = false;" was not working so i have created a textchange event it working fine now. private void textbox_TextChanged(object sender, System.EventArgs e) { Button.Enabled = true; } regards ybasha
-
hi there, Thanks for the support but the script "document.getElementById("Button1").disable = false;" was not working so i have created a textchange event it working fine now. private void textbox_TextChanged(object sender, System.EventArgs e) { Button.Enabled = true; } regards ybasha
It should work as its working on my m/c, just whether ur browser support javscript???