Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找与:selected.
:selected
它必须选择每个未选中的复选框。
我已经厌倦了这种方式,但它不起作用:
$("#cont").find("input[type=checkbox]:not(:selected)")
选择器:selected主要用于<select>. 对于复选框和单选按钮,您应该使用:checked选择器。
<select>
:checked
$("#cont").find("input[type=checkbox]:not(:checked)");
检查的属性是输入