title: Password confirmation not working - jquery validation plugin
body: <p>I can't get why the same code isn't working. I'm using devise gem, so all input names are the same. 
  <p>My password confirmation didn't work in other project.
  <p>Here is js code:</p>
  
  <pre><code>     $('.sign_up').validate({
  
      rules: {                    
          'user[password]': {
              required: true,
              minlength: 6
          },
          'user[password_confirmation]': {
              required: true,
              minlength: 6,
              equalTo: "#user_password"
          }
      }
  </code></pre>
  
  <p>My html code:</p>
  
  <pre><code>      &lt;label for="user_password"&gt;Password&lt;/label&gt;
         &lt;input id="user_password" type="password" size="30" name="user[password]"&gt;
  
          &lt;label for="user_password_confirmation"&gt;Re-Type Password&lt;/label&gt;
     &lt;input id="user_password_confirmation" type="password" size="30" name="user[password_confirmation]"&gt;
  </code></pre>
  
  <p>Where is problem ?</p>