Answers for "jquery get selected option value attribute"

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 value of selected option

$( "#myselect option:selected" ).val();
Posted by: Guest on July-13-2020

Code answers related to "jquery get selected option value attribute"

Browse Popular Code Answers by Language