title: jquery validate custom method not working
body: <p>I am trying to create my own custom method but not sure why its not working, here is the html code</p>
  
  <pre><code>&lt;form id="testForm"&gt;
      &lt;input type="text" required requnique value="" /&gt;
      &lt;input type="button" id="validateIt" value="Run"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>js code</p>
  
  <pre><code>$(document).ready(function(){
      $('#testForm').validate();
      $('#validateIt').click(function(){
          if($('#testForm').valid())
              alert('Valid');
          else
              alert('Not Valid');
      });
  
  });
  $.validator.addMethod("requnique", function(value, element) {
      console.log('hhh');
      //some customized test
      return false;
  }, "Must be unique.");
  </code></pre>
  
  <p>You can view the working example at: <a href="http://jsfiddle.net/TrYfA/" rel="nofollow">http://jsfiddle.net/TrYfA/</a></p>