1. 全选复选框:
//复选框全选函数
function SelectAll() {
var checkAll = document.getElementsByName("checkAll");
var checks = document.getElementsByName("proCheck");
for (var i = 0; i < checks.length; i++) {
checks[i].checked = checkAll.item(0).checked;
}
}
2022-09-28 20:55:27
1. 全选复选框:
//复选框全选函数
function SelectAll() {
var checkAll = document.getElementsByName("checkAll");
var checks = document.getElementsByName("proCheck");
for (var i = 0; i < checks.length; i++) {
checks[i].checked = checkAll.item(0).checked;
}
}