title: How to create a FOR loop for jQuery validate rules?
body: <p>I have created a <code>for loop</code> for the rules on <a href="http://jquery.bassistance.de/validate/demo/" rel="nofollow">jQuery validate</a> function, as follows:</p>
  
  <pre><code>form.validate({
      rules: {
          for(var i = 1; i &lt; arguments.length; i++) {
              arguments[i]: {required: true,},
          }
      }
  }
  </code></pre>
  
  <p>But when I click on submit I get <code>{"error": "Please use POST request"}</code> (in jsFiddle) and <code>Uncaught SyntaxError: Unexpected token (</code> in firebug. The problem is probably the last comma. I followed the suggestions of Felix and Huangism by removing the last comma but I always get the same error.</p>
  
  <p>See this <a href="http://jsfiddle.net/3GXJV/1/" rel="nofollow">jsFiddle</a>.</p>