title: jQuery validation plugin and dynamic inputs
body: <p>I have a section of form that dynamically generates and increments it's ids.
  Something like:</p>
  
  <pre><code>&lt;input type='text' name='fname1' id='fname1'/&gt;
  &lt;input type='text' name='lname1' id='lname1'/&gt;
  </code></pre>
  
  <p>I'm trying to go through and validate the form for the first time (I've never used the jQuery validation plugin before) and I began it with the form id "confirm" </p>
  
  <pre><code>$('#confirm').validate({
       rules:{
            oneoftheinputnameshere:{
               required: true
               }
              }
   });
  </code></pre>
  
  <p>The above is fine while I validate the input fields that don't change, but how would I go about selecting something to validate when I don't know how many times it'll be generated? I looked at some other questions about this and adding a class to every input field that is required, but I'm not sure if that's right or how to go about implenting it.</p>
  
  <p>Any help would be great</p>
  
  <p>EDIT: the ids would increment by one so 'fname2', 'fname3', etc</p>