Check password - Where is the error in code?

前端 未结 3 724
伪装坚强ぢ
伪装坚强ぢ 2021-01-28 08:06

The password authentication code, but does not work.. Where is the error in my code?

JS:

function checkPass() {
var pass = document.getE         


        
3条回答
  •  情话喂你
    2021-01-28 08:16

    if(pass.value != pass2.value) {
    document.layers.passResponse.innerHTML = "Passwords did not Match!";
    } else {
    document.layers.passResponse.innerHTML = "Passwords Match!";
    }
    }
    

    Use the code above.

提交回复
热议问题