title: How to use jQuery.validation on Checkboxes generated by jQuery.repeater?
body: <p>I'm using DubFriend/jquery.repeater to repeat a few fields, proengsoft/laravel-jsvalidation to export Laravel validation rules, and jQuery.validation to validate them.</p>
  
  <p><strong>Checkboxes</strong> processed by jquery.repeater, always get an extra [] after the name.</p>
  
  <p>The example in question is the following:</p>
  
  <pre><code>&lt;div data-repeater-list="group-prof_entities"&gt;
      &lt;div data-repeater-item&gt;
         &lt;input name="ep_is_default" type="checkbox"&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Jquery.Repeater initializes it, and now looks like this (First one):</p>
  
  <pre><code>&lt;input name="group-prof_entities[0][ep_is_default][]" type="checkbox"&gt;
  </code></pre>
  
  <p>Bellow the Laravel rule and the JsValidation expected field name:</p>
  
  <pre><code>'group-prof_entities.*.ep_is_default' =&gt; 'required',
  </code></pre>
  
  <pre><code>group-prof_entities[*][ep_is_default]
  </code></pre>
  
  <p>If I add the brackets to the Laravel rule it then expects this:</p>
  
  <pre><code>group-prof_entities[*][ep_is_default[]]
  </code></pre>
  
  <p>That's no good.</p>
  
  <p>Any ideas on how to fix this?</p>
  
  <p>I've tried to manually delete the "[]" in the generated name, and the rule apparently worked fine.</p>
  
  <p>I even tried to remove that "[]" and built a function that runs on the booting of the jquery.repeater, on a new copy of elements, but it fails on deleting an element, because indexes are recalculated and the "[]" is re-inserted.</p>
  
  <p>Thanks.</p>