get attribute of selected option jquery code example
Example 1: selected option attribute jquery
$('#location').find('option:selected').attr('myTag');
Example 2: get attribute of selected option jquery
var option = $('option:selected', this).attr('mytag');