| | |
How to make selected index zero for dropdown list box in java script..?
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi all..
I am having two dropdown list boxes in my .aspx page
They are ddl1 and ddl2...
Now if i change the selected index of the first box (ddl1), the selected index of the second dropdownlist must automaticlly set to zeroth index..i.e index of the second dropdown list box should be set to zero..Somebody provide me with the code in java script as early as posible..
Regards,
Balagurunathan S
I am having two dropdown list boxes in my .aspx page
They are ddl1 and ddl2...
Now if i change the selected index of the first box (ddl1), the selected index of the second dropdownlist must automaticlly set to zeroth index..i.e index of the second dropdown list box should be set to zero..Somebody provide me with the code in java script as early as posible..
Regards,
Balagurunathan S
•
•
Join Date: Aug 2007
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
javascript Syntax (Toggle Plain Text)
document.getElementById('ddl2').selectedIndex = 0;
cya
Thanks Nandem..I got it...
Regards,
Bala
![]() |
Similar Threads
- Dropdown list in ASP.NET - How to get value selected (ASP.NET)
- How to move a selected item up/down in List Box? (C++)
- problem in listing directories in list box (Java)
- Error in loading items into a Dropdown list box in an ASP .net Page (ASP.NET)
- how to access dropdown list entries in python psp site (Python)
- list box --php issue (PHP)
- How to Embed CheckList Box on HTML Page using Java Script (HTML and CSS)
- A question on java script?(Please answer ASAP) (Java)
- DropDown List (VB.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: progress bar for fileupload using javascript
- Next Thread: Password protect code
| Thread Tools | Search this Thread |
acid2 ajax ajaxcode ajaxexample ajaxhelp ajaxjspservlets animate automatically beta box browser bug calendar captchaformproblem checkbox child close column createrange() css cursor decimal dependent design disablefirebug dom download dropdown editor element embed engine error events explorer ext file form forms google gwt gxt hiddenvalue highlightedword hint html htmlform ie8 iframe images index internet java javascript javascripthelp2020 jawascriptruntimeerror jquery jsf jsfile jump libcurl listbox math media microsoft mimic mp4 object onmouseoutdivproblem onmouseover onreadystatechange parent paypal pdf php player post problem progressbar regex runtime scroll search security select shopping size software sql text textarea unicode w3c web website window windowofwords windowsxp wysiwyg \n





