option selected jquery attribude code example
Example 1: selected option attribute jquery
$('#location').find('option:selected').attr('myTag');
Example 2: 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);
});