如何进行CheckBox的全选呢?

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

posted on 2009-06-29 13:20  52Qin  阅读(203)  评论(0编辑  收藏  举报