title: error in return false on keyup
body: <p>Here is html</p>
  
  <pre><code>    &lt;form name="passwordchng" method="post" action=""&gt;
         &lt;input name="_curpasswd" id="curpasswd" size="20" autocomplete="off" type="password" /&gt;
         &lt;input name="_newpasswd" id="newpasswd" size="20" autocomplete="off" type="password" /&gt;
         &lt;input name="_confpasswd" id="confpasswd" size="20" autocomplete="off" type="password" /&gt;
         &lt;input type="submit" name="submit" value="Save" /&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Here is jquery</p>
  
  <pre><code>  &lt;script&gt; 
      $("#newpasswd").keyup(function() {
          if($("#curpasswd").val()==$("#newpasswd").val()){
              $(".newpasserror").css({"color":"red","margin-left":"10px"}).text("No changes made to your password.");
              return false;
          }
          else{
            $(".newpasserror").css({"color":"red","margin-left":"10px"}).text("A strong Password should have at least 1 alphabet,1 digit and 1 special character."); 
            return true;
          }
      });
   &lt;/script&gt;
  </code></pre>
  
  <p>It should not allow submitting form when if condition executes. Here form is submitting even both passwords are same...</p>