Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js get selected option elemeng

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