give classname for select based on selected option code example Example: jquery find selected option by class $(this).find('option:selected').attr("name");