selected option attribute jquery

JavaScript
$('#location').find('option:selected').attr('myTag');
Source

Also in JavaScript: