jQuery复选框全选和全选取消

it2022-05-05  116

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复选框全选/取消示例

最新回复(0)