title: .validate rule: check jquery var
body: <p>So, i'm trying to take a jQuery var and use it as a rule for the .validate plugin.
  The var comes from a function that runs a function and give 1 for true and 0 for false, the problem is that i can't make the rule return true or false for the validate function. The code reads:</p>
  
  <pre><code>$.validator.addMethod("cpfc", function(){
      if (($(CPF.valida($(cpf).val())).size()) === '1' )
      {
          return true;
      }
      else
      {
          return false;
      }
  });
  </code></pre>
  
  <p><code>$(CPF.valida($(cpf).val())).size()</code> = <code>1</code> or <code>0</code>, depends on the function check, I ran this function on the console and it's returning the correct values.</p>
  
  <p>Any help will be appreciated </p>