【经典】表格checkbox 全选与取消

//全选与取消
$(function () {
  $("table :checkbox:first").change(function(){
      $(this).closest("table")
             .find(":checkbox:not(:first)")
             .prop("checked", this.checked);
  });
}) 
相关文章
相关标签/搜索