Home > front end >  Ancient code of js can't detect the checkbox
Ancient code of js can't detect the checkbox

Time:03-16

Company a 20 years ago website application
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:

reference 1st floor species may reply:
 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;
}

Thank you
Another excuse me why suddenly overnight before the code can't use?
And it is all chrome computer can't use, recently also did not updated browser
A mystery

CodePudding user response:

The building Lord this code in ie could not normal, to determine your website is that written?
  • Related