标签:length efi tag puts get var 不能 checked als
var chbClass = document.getElementById("<%=DDL_CheckboxUserClass1.ClientID %>" + "_chbClass");
if (chbClass != undefined)
{
var inputs = chbClass.getElementsByTagName("input");
var count = 0;
for (var i = 0; i < inputs.length; i++)
{
if (inputs[i].checked == true)
{
count++;
}
}
if (count == 0)
{
alert("文件小類不能選擇為空!");
flag = false;
return flag;
}
else
{
flag = true;
}
if (add)
{
if (count != 1)
{
alert("新增時,文件小類不能選擇多個!");
flag = false;
return flag;
}
else {
flag = true;
}
}
}
标签:length efi tag puts get var 不能 checked als
原文地址:http://www.cnblogs.com/Litrain/p/6254957.html