when select dropdown get custom attribute name in jquery code example Example: selected option attribute jquery $('#location').find('option:selected').attr('myTag');