Apollo4life
New Member
- Joined
- Sep 25, 2014
- Messages
- 37
Hello,
I have this code with 2 different drop down selections on a website, when I getelementsbyName it will only pull the first line of the drop down instead of the selected line. How can I have it to where it returns the drop down that is selected. Thank you!
I have this code with 2 different drop down selections on a website, when I getelementsbyName it will only pull the first line of the drop down instead of the selected line. How can I have it to where it returns the drop down that is selected. Thank you!
Code:
< select name="Car_Year" onchange="Vehicle" >< option value="" >< / option>
< option value="48371" >1957 < / option>
< option value="48372" selected="true" >1958 < / option>< / select>
Last edited: