title: Check if new password is the same as confirm new password text boxes
body: <p>I have 2 text boxes. The first one is for new password and the old one is for confirming new password.</p>
  
  <pre><code>&lt;script&gt;
      var old = $("#old").val();
      var newPass = $("#new_pass").val();
      var ConfirmPass = $("#confirm_pass").val();
  
      $("#confirm_pass").keyup(function () {
          if (this.value == newPass) {
              $("#check").toggleClass('fa-times fa-check')
          }
  
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>When the user type his new passord then type in confirm password text box I need to change a label from <code>fa fa-times</code> into <code>fa fa-check</code>.</p>
  
  <p>But when I just put the cursor inside the confirm text box, it's transformed into <code>fa fa-check</code> without typing anything.</p>