jquery get every option code example
Example 1: jquery get all select options
//looping through options select with jQuery
$("#mySelectID option").each(function(){
var thisOptionValue=$(this).val();
});
Example 2: get option value jquery
$('#state option[data-id="2"]').val();
//output state2