option select 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: jquery selected option
$( "#myselect option:selected" ).val();
Example 3: get text in select jquery
$("#id option:selected").text();
Example 4: get selected element html jquery
$('.classSelector')[0].outerHTML