jQuery(".salaryIds").each(
function(){
if(jQuery("#salaryIds").attr("checked")=="checked"
){
jQuery(".salaryIds").attr("checked","checked"
);
}else{
jQuery(".salaryIds").removeAttr("checked"
);
}
console.log(jQuery(this).attr("checked"
));
});
转载于:https://www.cnblogs.com/jiaotankuai417/p/6762881.html
相关资源:jquery复选框全选/取消示例