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