Jquery 如何选择表单上除具有特定类的select元素之外的所有select元素

Jquery 如何选择表单上除具有特定类的select元素之外的所有select元素,jquery,select,Jquery,Select,这个标题几乎是不言自明的。我需要选择表单上的所有select元素,除了类为“.notselective”的元素 或 第一个是。尝试方法 $('#yourform select').not('.notSelectable') $('#yourform select:not(.notSelectable)') $("select").not('select.notSelectable');

这个标题几乎是不言自明的。我需要选择表单上的所有select元素,除了类为“.notselective”的元素

第一个是。

尝试方法

$('#yourform select').not('.notSelectable')
$('#yourform select:not(.notSelectable)')
$("select").not('select.notSelectable');