DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
get index of selected option javascript
$("#sel").attr("selectedIndex") // or $("#sel")[0].selectedIndex //or $(this).prop('selectedIndex')
PREVIOUS
NEXT
Tagged:
#index
#selected
#option
#javascript
ADD COMMENT
Topic
COMMENT
Name
4+9 =
Submit