$(function(){
$("#chkAll").click(function(){
if(this.checked){//如果自己选中
$("table tr td input[type=checkbox]").attr("checked",true);
}else{//如果自己没选中
$("table tr td input[type=checked]").attr("checked",false);
}
})
})
表格里全选按钮
最新推荐文章于 2021-05-31 06:37:56 发布