CodePudding user response:
You look at the operator do not meet the requirements of your
<meta charset="utf-8"/& gt;
<body>
Password | |
Confirmpassword |
<script>
Var a=document. GetElementById (" a ");
Var b=document. GetElementById (" b ");
Var a1=document. GetElementById (" a1 ");
Var b1=document. GetElementById (" b1 ");
A.o nchange=function () {
If (Dr. Alue. Length & lt; 6 | | Dr. Alue. Length & gt; 20) {
A1. Style. The visibility="visible";
}
The else {
A1. Style. The visibility="hidden";
}
}
B.o nchange=function () {
If (Dr. Alue!=b.v alue) {
B1. Style. The visibility="visible";
}
The else {
B1. Style. The visibility="hidden";
}
}
</script>