title: jQuery Validation Problems Using equalTo
body: <p>I'm doing a pretty simple validation that checks if two fields are equal. Unfortunately, it seems to not be working (returns false when it should return true).</p>
  
  <p>Here's the jQuery (#profSet is the main form):</p>
  
  <pre><code>            //if either password field is filled, start trying to validate it
              if($("#chpw").val() != "" || $("#chpw2").val() != "")
              {
                  $("#profSet").validate({
                      rules: {
                          chpw2: {
                              equalTo: "#chpw"
                          }
                      }
                  });
                  if($("#profSet").valid())
                  {
                      $pv = 1;
                  }
                  else
                  {
                      $pv = 0;
                  }
              }
  </code></pre>
  
  <p>Here's the HTML:</p>
  
  <pre><code>    &lt;tr&gt;
          &lt;td&gt;Change Password&lt;/td&gt;&lt;td&gt;&lt;input type="password" id="chpw" name="chpw"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;Confirm Password&lt;/td&gt;&lt;td&gt;&lt;input type="password" id="chpw2" name="chpw2"/&gt;&lt;br&gt;&lt;label for="chpw2" class="error" generated="true"&gt;&lt;/label&gt;&lt;/td&gt;
    &lt;/tr&gt;
  </code></pre>