get class of option selected jquery code example Example: jquery find selected option by class $(this).find('option:selected').attr("name");