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