Answers for "get value of a select jquery"

1

jquery get selected option value

$("select.your-select").change(function(){ 
	$(this).children("option:selected").val();
});
Posted by: Guest on September-10-2020
-1

jquery get selected option value

var selectedOptionText = $('#mySelectID').find(":selected").text();//selected option text
var selectedOptionVal = $('#mySelectID').find(":selected").val();//selected option value
Posted by: Guest on March-27-2021
0

access selected option in jquery

$( "#myselect option:selected" ).text();
// => "Mr"
Posted by: Guest on November-16-2020

Code answers related to "get value of a select jquery"

Browse Popular Code Answers by Language