jquery find attr select option code example
Example 1: selected option attribute jquery
$('#location').find('option:selected').attr('myTag');
Example 2: get selected element html jquery
$('.classSelector')[0].outerHTML
$('#location').find('option:selected').attr('myTag');
$('.classSelector')[0].outerHTML