title: jQuery Validate - how to run function inside "required" without executing it on load
body: <p>Very simple example when I use function inside 'required' that should run on actual form validation but it also does execute on load of the page.</p>
  
  <p>The question is how to avoid it and make so it would call other function inside required only on actual validation.</p>
  
  <pre><code>$("form").validate({           
              rules : {
                  testinput: {
                      required: runFunction('hello world')
                  }
  });
  
  function runFunction(a){
      console.log(a);
  }
  </code></pre>