title: jquery confirm password validation
body: <p>I am using jquery for form validation. Rest is well except the confirm password field. Even when the same password is typed, the <strong>Please enter the same password.</strong> is not removed.</p>
  
  <p>My script is:</p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
      $(document).ready(function() {
        $("#form1").validate({
          rules: {
            password: { 
                  required: true, minlength: 5
            }, 
            c_password: { 
                  required: true, equalTo: "#password", minlength: 5
            }, 
          email: {
            required: true, email: true
            },
          phone: {
            required: true, number: true, minlength: 7
            },
          url: {
            url: true
          },
          description: {
            required: true
          },
          gender: {
               required: true
            }
          },
          messages: {
           description: "Please enter a short description.",
           gender: "Please select your gender."
  
          }
        });
      });
       --&gt;
    &lt;/script&gt;
  </code></pre>
  
  <p>And inside the form tag:</p>
  
  <pre><code>&lt;div class="form-row"&gt;&lt;span class="label"&gt;Password&lt;/span&gt;&lt;input type="password" name="password" class="required" id="password" /&gt;&lt;/div&gt;
  
  &lt;div class="form-row"&gt;&lt;span class="label"&gt;Confirm Password&lt;/span&gt;&lt;input type="password" name="c_password" id="c_password" /&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Any suggestion?
  Would be much thankful for the help.</p>