title: jQuery. Apply selector to every field in a dynamic form
body: <p>I have a form which is built dynamically using this jQuery plugin  </p>
  
  <pre><code>http://code.google.com/p/jquery-dynamic-form/
  </code></pre>
  
  <p>When I duplicate a <strong>div</strong>, all the fields in the <strong>div</strong> are duplicated, and -as plugin docs state- <strong>brackets</strong> are added to the field name</p>
  
  <p>I use also jQueryUI. I use the datePicker plugin</p>
  
  <pre><code>$("#myDynDateField").datepicker();
  </code></pre>
  
  <p>It works fine when there's only 1 instance of this datePicker field. When I duplicate the whole div, the datePicker field is also duplicated, and errors begin</p>
  
  <pre><strong>
  inst is undefined
  uncaught exception: Missing instance data for this datepicker  
  
  </strong></pre>
  
  <p>1) How can I use a jQuery selector that covers all the duplicated fields also?<br>
  2) How can I make sure that every duplicated datePicker field will have its right instance, etc.?</p>
  
  <p>Thanks a lot in advance,</p>