如何使用jQuery或纯JS重置所有复选框
1 回答

郎朗坤
TA贡献1921条经验 获得超9个赞
如果要使用窗体的重置功能,最好使用以下方法:
1 | $('input[type=checkbox]').attr('checked',true); |
或
1 | $('input[type=checkbox]').attr('checked',false); |
- 1 回答
- 0 关注
- 482 浏览
添加回答
举报
0/150
提交
取消