title: Custom method with jQuery Validation plugin
body: <p>Im trying to work with custom validation in Jquery. All the coding part is right,but i am not getting where its going wrong...here is the part of code.</p>
  
  <pre><code>Password:&lt;input type="password" id="pnameTxt" name="pnameTxt" placeholder="Enter Password" size=12 class='required'&gt;&lt;br&gt;
  Confirm Password:&lt;input type="password" id="pnameTxt2" name="pnameTxt2" placeholder="Retype Password" size=15 class='required passwordCheck'&gt;&lt;br&gt;
  </code></pre>
  
  <p>Custom validation method:</p>
  
  <pre><code> $.validator.addMethod("passwordCheck",function (value,element){
            return value==$("#pnameTxt").val(); 
  
          }, 'Password and Confirm Password should be same');
  </code></pre>