【經典】表格checkbox 全選與取消

//全選與取消
$(function () {
  $("table :checkbox:first").change(function(){
      $(this).closest("table")
             .find(":checkbox:not(:first)")
             .prop("checked", this.checked);
  });
}) 
相關文章
相關標籤/搜索