title: jQuery Validation Engine: Trouble Creating a Custom Function
body: <p>I've tried both the <strong>custom[function_name]</strong> and <strong>funcCall[methodName]</strong> methods listed the the <a href="http://posabsolute.github.com/jQuery-Validation-Engine/#validators/custom-function_name" rel="nofollow">documentation </a> and I can't seem to get either to work.</p>
  
  <p>my custom function looks like this:</p>
  
  <pre><code>function einTest(field, rules, i, options) {
          if (field != null) {
              var x = field.toString();
              if (x.length != 5) {
                  return options.allrules.ein.alertText2;
              }
          }
          else {
              return options.allrules.ein.alertText;
          }
      }
  </code></pre>
  
  <p>and I've created the following in the vaildationEngine-en.js file:</p>
  
  <pre><code>"ein": {
                  "alertText": "Not a number.",
                  "alertText2": "Must be a 5 digit number."
      },
  </code></pre>
  
  <p>and I'm trying to use it on the following html field:</p>
  
  <pre><code>&lt;tr&gt;
  &lt;td&gt;&lt;b&gt;Associate Number (EIN):&lt;/b&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" id="EIN" name="EIN" class="validate[required,funcCall[einTest]]" data-prompt-position="inline" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>but nothing seems to work... the einTest function is not firing.</p>
  
  <p>Any clues?</p>