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.
有很多复选框。如果复选框未选中,我必须选中。
$('.group_select').iCheck('uncheck').trigger(checked);
但这不起作用。我在 jquery 中尝试过。
你为什么不这样做呢?
如果.group_select是包含所有复选框的父级,那么您可以执行以下操作
.group_select
$('.group_select').find('input[type="checkbox"]').iCheck('check');
如果是给你.group_select的共同点,你可以写如下:classnamecheckbox
classname
checkbox
$('.group_select').iCheck('check');