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