title: how to make a password input match with another input
body: <p>I used jQuery and Javascript to create a script in which if two password type inputs don't match, it alerts, "password doesn't match." Here is my code:</p>
  
  <pre><code>if (!password == retypepassword) {
   document.getElementById("retypepassworderror").innerHTML = "password doesn't match";
   }
  else {
  $("#retypepassworderror").text("");
  }
  </code></pre>
  
  <p>Note : both <code>password</code> and <code>retypepassword</code> are variables</p>