jquery get selected option attribute element code example Example: get attribute of selected option jquery var option = $('option:selected', this).attr('mytag');