title: Any way of show hide multiple passwords at the same time in Javascript?
body: <p>I am trying to find a solution if is possible to show / hide the password at the same time?</p>
  
  <p>I could only show / hide for the first original password. 
  Does anybody know a solution for it or if is even possible? </p>
  
  <p>Here is JavaScript and HTML code </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function Toggle() {
    let btt = password
    if (btt.type === "password") {
      btt.type = "text";
    } else {
      btt.type = "password";
    }
  }
  
  function checkPassword(register) { //correct
    let fisrtPassword = register.password.value;
    let retypedPassword = register.retypedpassword.value;
    if (fisrtPassword === retypedPassword) {
      return true;
    } else {
      passwordMatchError.setAttribute("class", "error");
      passwordMatchError.innerHTML = ("Passwords do not match. Please retype");
      return false;
    }
  }</code></pre>
  </div>
  </div>
  </p>