Answers for "how to get select function value in 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 select option by value

$('.id_100 option[value=val2]').attr('selected','selected');
Posted by: Guest on December-07-2020

Code answers related to "how to get select function value in jquery"

Browse Popular Code Answers by Language