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


Sachin SinghRank #66 · 26.2K reputationPosted Nov 11, 2021, 4:39 AM EST
Vikas PanwarRank #1,447 · 1.1K reputationPosted Nov 11, 2021, 4:23 AM EST
AkilaRank #7,443 · 241 reputationPosted Nov 11, 2021, 4:51 AM EST