how to get attr of selected option jquery code example Example: selected option attribute jquery $('#location').find('option:selected').attr('myTag');