get the value of selected option in jquery add custom value for id code example
Example: selected option attribute jquery
$('#location').find('option:selected').attr('myTag');
$('#location').find('option:selected').attr('myTag');