如何进行CheckBox的全选呢?
如何进行CheckBox的全选呢?很使用的方法哦。
1
$(document).ready(function(){
2
$("#chkAll").click(function(){
3
$("input[name='method[]']").each(function() {
4
this.checked = $("#chkAll").attr("checked");
5
});
6
});
7
});
$(document).ready(function(){2
$("#chkAll").click(function(){3
$("input[name='method[]']").each(function() {4
this.checked = $("#chkAll").attr("checked");5
});6
});7
});


$(
浙公网安备 33010602011771号