Dropdown SelectedIndex
-
Hi, I have a dropdown which shows products name(DataText) and product code(Datavalue). Now i wanted to select first value and its value in textbox on page load?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
Hi, I have a dropdown which shows products name(DataText) and product code(Datavalue). Now i wanted to select first value and its value in textbox on page load?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
| Muhammad Waqas Butt | wrote:
Now i wanted to select first value and its value in textbox on page load?
:confused: Do you want to select the value in dropdownlist that is entered in textbox ?
-
| Muhammad Waqas Butt | wrote:
Now i wanted to select first value and its value in textbox on page load?
:confused: Do you want to select the value in dropdownlist that is entered in textbox ?
Hi, first of all, sorry for confusion. I have find the solution. Thx. Now can you tell me how i hide/show Submit(asp control not html control) button through javascript. I have tried this code but it gave me a error: document.Form1.btnsubmit.style.visibility = 'hidden'; Error: document.Form1.btnsubmit.style. is null or not a object. But i have tried the same code of textbox(asp control) it working. Any help?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
-
Hi, first of all, sorry for confusion. I have find the solution. Thx. Now can you tell me how i hide/show Submit(asp control not html control) button through javascript. I have tried this code but it gave me a error: document.Form1.btnsubmit.style.visibility = 'hidden'; Error: document.Form1.btnsubmit.style. is null or not a object. But i have tried the same code of textbox(asp control) it working. Any help?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
| Muhammad Waqas Butt | wrote:
document.Form1.btnsubmit.style.visibility = 'hidden';
Try
document.getElementById("btnsubmit").style.visibility = "hidden";
-
Hi, first of all, sorry for confusion. I have find the solution. Thx. Now can you tell me how i hide/show Submit(asp control not html control) button through javascript. I have tried this code but it gave me a error: document.Form1.btnsubmit.style.visibility = 'hidden'; Error: document.Form1.btnsubmit.style. is null or not a object. But i have tried the same code of textbox(asp control) it working. Any help?
|Muhamad Waqas Butt| waqasb4all@yahoo.com www.sktech.freewebspace.com
you can do it like: //hide document.getElementById("TextBox1").style.display = "none"; //show document.getElementById("TextBox1").style.display = "block";
/**--------------------**/ I am learning english.I am still having a few problem, but I getting better. I am very glad if you point my mistake in english. TIA.