selectedIndex Demo
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
á
CSGNetwork
Snippets
Calculators
Top Free Apps
Home
Back



Right click this window and select "view source" in order to copy the source for this script.



What can I expect from an HTML dropdown box in passing data? Using JavaScript, you can expect universally to most browsers, a minimum of 3 pieces of data. There are ways to extract and pass more data, as well as use additional indexes but not all browsers support them.

selectedIndex
options[].value
options[].text



selectedIndex Demo

View the source. This routine demonstrates what you can expect and what values you can pass from an HTML dropdown box and JavaScript.


Bookmark and Share
Registered® Trademark™ and Copyrightę 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved