The password authentication code, but does not work.. Where is the error in my code?
JS:
function checkPass() { var pass = document.getE
You are compare two html elements, not the values of them.
if(pass1 != pass2) {
Should be
if(pass1.value != pass2.value) {