Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

jquery get selected option value

var selectedOptionText = $('#mySelectID').find(":selected").text();//selected option text
var selectedOptionVal = $('#mySelectID').find(":selected").val();//selected option value
 
PREVIOUS NEXT
Tagged: #jquery #selected #option
ADD COMMENT
Topic
Name
3+8 =