title: Add Same Rule Multiple Fields
body: <p>I'm trying to add the same rules to html input elements with this naming convention:</p>
  
  <pre><code>name="elements[1]"
  name="elements[2]"
  </code></pre>
  
  <p>I'm using jQuery and jQuery Validation Plugin:</p>
  
  <pre><code>var elements = $("#elementsFieldset :input");
  $.each(elements, function(i, element) {
      element.rules('add', {
      required: true,
      number: true
  });
  </code></pre>
  
  <p>But I'm afraid that <em>element</em> is not the kind of object jQuery expects for adding rules.
  I'm receiving:</p>
  
  <pre><code>Uncaught TypeError: Object #&lt;HTMLInputElement&gt; has no method 'rules'
  </code></pre>
  
  <p>Many thanks for any help.</p>