jQuery实现CheckBox全选、全不选 $(function() { $("#chk_all").click(function() { $("input[name='CaseID']").attr("checked", this.checked); }); });