如何进行CheckBox的全选呢?

如何进行CheckBox的全选呢?很使用的方法哦。
1$(document).ready(function(){
2$("#chkAll").click(function(){
3$("input[name='method[]']").each(function() {
4this.checked = $("#chkAll").attr("checked");
5}
);
6}
);
7}
);
原文地址:https://www.cnblogs.com/zq535228/p/1513131.html