js jquery selected option code example
Example 1: jquery selected option
$( "#myselect option:selected" ).val();
Example 2: selected option attribute jquery
$('#location').find('option:selected').attr('myTag');
$( "#myselect option:selected" ).val();
$('#location').find('option:selected').attr('myTag');