jquery get select option values code example
Example 1: jquery selected option value
$(document).ready(function(){
$("select.country").change(function(){
var selectedCountry = $(this).children("option:selected").val();
alert("You have selected the country - " + selectedCountry);
});
Example 2: get option value jquery
$('#state option[data-id="2"]').val();
//output state2