复选框全选反全选

function qx() {
var qx = document.getElementById("qx");
if(qx.checked){
$("input:checkbox").prop("checked","true")
}else{
$("input:checkbox").removeAttr("checked")
}

}

  

原文地址:https://www.cnblogs.com/ZhangHaiBK/p/8988633.html