时间:2021-07-01 10:21:17 帮助过:15人阅读
var CheckBox = document.getElementById("<%=cblWeek.ClientID %>").getElementsByTagName("INPUT");
if (CheckBox != undefined) {
var i = 0;
var j = 0;
for (i = 0; i < CheckBox.length; i++) {
if (CheckBox[i].checked) {
j += 1;
}
}
if (j == 0) {
alert("请选择星期!");
return false;
}
}