摘要:
全选/取消全选 $(function () { //获取全选按钮,单选按钮的集合 var $all = $("#chkAll"), $chks = $("input[name='chk']"); $all.click(function () { $chk.prop("checked", this.checked); }); $chk.click(function () { $all.prop("checked", $chks.length == $chks.filter(":checked 阅读全文