title: Jquery validation for confirm password
body: <p>I am using Jquery for form validation , in that I have password and confirm password fields like this,</p>
  
  <pre><code>&lt;input type="password" class="form-control" name="password" id="password"&gt;
  &lt;input type="password" class="form-control" name="cfmPassword" id="cfmPassword" &gt;
  </code></pre>
  
  <p>Here other fields are working fine but not confirm password field,
  The rule for <code>cfmPassword</code> is as follow ,</p>
  
  <pre><code>password: {
      required: true,
      minlength: 6,
      maxlength: 10
  
  },
  cfmPassword: {
      required: true,
      equalTo: "#password",
      minlength: 6,
      maxlength: 10
  }
  </code></pre>
  
  <p>but here the problem is if <code>cfmpassword</code> is not same as <code>password</code> also it doesnt show error message. please any one help me in this.</p>