select option html jquery code example
Example 1: select option value jquery
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});
Example 2: get selected option value jquery
$("#vacc_wellness_agegroups option:selected").val();
Example 3: access selected option in jquery
$( "#myselect option:selected" ).text();
// => "Mr"