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.
我使用这个多选,我想使用使用 jquery 的取消选择所有方法。我该怎么做
你需要调用这样uncheckAll的函数multiselect:
uncheckAll
multiselect
$("select").multiselect('uncheckAll');
另外,请记住,您不想取消选择页面中的所有选择标签,因此您必须使用选择器使用data或class或name属性来定位您要定位的选择标签。
data
class
name