$("#selectbox-all").click(function(){//给全选按钮加上点击事件 var xz = $(this).prop("checked");//判断全选按钮的选中状态 $("input[type=‘checkbox‘").each(function() { $(this).prop("checked",xz); }); })
checkbox 全选
原文:https://www.cnblogs.com/mmmzh/p/11008705.html