jQuery中多选框的选中与取消操作

$("[name='checkbox']").attr("checked",'true');//全选 

$("[name='checkbox']").removeAttr("checked");//取消全选

$("[name='checkbox']:even").attr("checked",'true');//选中所有奇数 

  

原文地址:https://www.cnblogs.com/chentexi/p/12459829.html