同步选中所有checkbox

$("input[type=checkbox][tag=ckAll]").change(function () $(this).parent().parent().siblings().find("input[type=checkbox]").attr("checked",$(this).is(":checked"));});

  

原文地址:https://www.cnblogs.com/zhoushiya/p/12107238.html