jquery – get value and text from selected option


var $myDDL = $('#dropDownList');

var myValue = $('option:selected', 	$myDDL).val();

var myText = $('option:selected', $myDDL).text();

Comments are closed.