how to get an attribute value in jquery from a select list code example
Example 1: selected option attribute jquery
$('#location').find('option:selected').attr('myTag');
Example 2: jquery get data attribute of selected option
$(this).find(':selected').data('id')
Example 3: get attribute value jquery
var some_var = $( some_jquery_selector ).attr( 'some_attribute_name' );