Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get selected option element

var yourSelect = document.getElementById( "your-select-id" );
alert( yourSelect.options[ yourSelect.selectedIndex ].value )
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #selected #option #element
ADD COMMENT
Topic
Name
9+8 =