3
Answers

how to compare three input fields in javascript

Akila

Akila

3y
532
1

Hi

I want to compare three fields.three fields cannot be same if(document.getElementById("CurrentPassword").value==this.state.NewPassword||document.getElementById("NewPassword").value==document.getElementById("ConfirmPassword").value){ document.getElementById("error").innerHTML="! All Secret code cannot be same"; return false; }

I can create the condtion but some error will appear

Answers (3)