Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
123
rated 0 times [  127] [ 4]  / answers: 1 / hits: 51225  / 15 Years ago, tue, december 15, 2009, 12:00:00

to get the selected value from HTML select:



options[selectedIndex].value



what if i want to get the id on the selected option?


More From » html

 Answers
15

It's as simple as:



options[selectedIndex].id

[#98070] Thursday, December 10, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaylynbrynnk

Total Points: 706
Total Questions: 98
Total Answers: 91

Location: Israel
Member since Thu, Jan 7, 2021
3 Years ago
;