drop select option custom attr code example Example: selected option attribute jquery $('#location').find('option:selected').attr('myTag');