Skip to content Skip to sidebar Skip to footer

Re-enter Email Validator Not Working On Javascript

So I'm trying to check if the user inputs the same email address and password twice in a signup form using javascript. It shouldn't let them sign up if they don't match, however on

Solution 1:

You need to assign var in top of the script:

 var first_email = document.getElementById("email1")
  , second_email = document.getElementById("email2")
  , password = document.getElementById("password")
  , confirm_password = document.getElementById("confirm_password");

Post a Comment for "Re-enter Email Validator Not Working On Javascript"