Suddenly someone today reflect, in IE is normal, but an error in the chrome
When click submit prompt record incomplete
Later found out that when there are multiple checkbox, js can't detect the checkbox content
If only one checkbox can normal use
What is the problem cause? How to solve?
<script>
The function CHKFRM (FRM)
{
If (frm.person.valuehttps://bbs.csdn.net/topics/=="")
{
Alert (" the record is not complete!" );
return false;
}
return true;
}
</script>
Inspector: & lt; br> |
CodePudding user response:
function CHKFRM (FRM)
{
Persons=FRM. Person;
for(i=1; i{if (persons [I] valuehttps://bbs.csdn.net/topics/=="")
{
Alert (" the record is not complete!" );
return false;
}
}
return true;
}
CodePudding user response: