title: Update attributes for other balise than input with jquery.repeater ? (usefull for ajax validation message)
body: <p>using <a href="https://github.com/DubFriend/jquery.repeater" rel="nofollow noreferrer">https://github.com/DubFriend/jquery.repeater</a>, i have to add fields validation message in my repeater template.</p>
  
  <p>So the message span container <code>data-validate-for</code> attribute must be updated at the same time as his corresponding input name because my ajax framework search this to inject the error message if field is not correctly filled</p>
  
  <p>below the html source code</p>
  
  <pre><code>&lt;div data-repeater-list="group-a"&gt;
  
  &lt;!-- repeater template --&gt;
  &lt;div data-repeater-item style="display:none;"&gt;
  
  &lt;label for="date"&gt;Date&lt;/label&gt;
  &lt;input type="date" name="date" /&gt; 
  &lt;span class="error_message" data-validate-for="date"&gt;&lt;/span&gt;
  
  &lt;label for="amount"&gt;Amount&lt;/label&gt;
  &lt;input type="text" name="amount" /&gt;
  &lt;span class="error_message" data-validate-for="amount"&gt;&lt;/span&gt;
  
  &lt;input data-repeater-delete type="button" value="delete" /&gt;
  &lt;/div&gt;
  
  &lt;!-- first group displayed --&gt;
  &lt;div data-repeater-item&gt;
  
   &lt;label for="date"&gt;Date&lt;/label&gt;
   &lt;input type="date" name="date" /&gt; 
   &lt;span class="error_message" data-validate-for="date"&gt;&lt;/span&gt;
  
   &lt;label for="amount"&gt;Amount&lt;/label&gt;
   &lt;input type="text" name="amount" /&gt;
   &lt;span class="error_message" data-validate-for="amount"&gt;&lt;/span&gt;
  
   &lt;input data-repeater-delete type="button" value="delete" /&gt;
   &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>expected values after user adding item</p>
  
  <pre><code>&lt;!-- first group displayed --&gt;
  &lt;div data-repeater-item&gt;
  
   &lt;label for="date"&gt;Date&lt;/label&gt;
   &lt;input type="date" name="group[1][date]" /&gt; 
   &lt;span class="error_message" data-validate-for="group[1][date]"&gt;&lt;/span&gt;
  
   &lt;label for="amount"&gt;Amount&lt;/label&gt;
   &lt;input type="text" name="group[1][amount]" /&gt;
   &lt;span class="error_message" data-validate-for="group[1][amount]"&gt;&lt;/span&gt;
  
  &lt;input data-repeater-delete type="button" value="Supprimer" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is it possible using native repeater library functions to update other attributes like <code>data-validate-for='same_input_name'</code> or i need to add jquery code somewhere (library hack or out of the box ?)</p>
  
  <p>thanks by advance</p>