title: Required attribute on multiple checkboxes with the same name?
body: <p>I have a list of checkboxes <strong>with the same name</strong> attribute, and I need to validate that at least one of them has been selected.</p>
  <p>But when I use the html5 attribute &quot;required&quot; on all of them, the browser (chrome &amp; ff) doesn't allow me to submit the form unless all of them are checked.</p>
  <p>sample code:</p>
  <pre><code>&lt;label for=&quot;a-0&quot;&gt;a-0&lt;/label&gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;q-8&quot; id=&quot;a-0&quot; required /&gt;
  &lt;label for=&quot;a-1&quot;&gt;a-1&lt;/label&gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;q-8&quot; id=&quot;a-1&quot; required /&gt;
  &lt;label for=&quot;a-2&quot;&gt;a-2&lt;/label&gt;
  &lt;input type=&quot;checkbox&quot; name=&quot;q-8&quot; id=&quot;a-2&quot; required /&gt;
  </code></pre>
  <p>When using the same with radio inputs, the form works as expected (if one of the options is selected the form validates)</p>
  <p>According to <a href="https://stackoverflow.com/questions/4901576/html5-significance-of-attribute-named-required-in-checkbox-radio">Joe Hopfgartner</a> (who claims to quote the html5 specs), the supposed behaviour is:</p>
  <blockquote>
  <p>For checkboxes, the required attribute shall only be satisfied when one or more of the checkboxes with that name in that form are checked.</p>
  <p>For radio buttons, the required attribute shall only be satisfied when exactly one of the radio buttons in that radio group is checked.</p>
  </blockquote>
  <p>am i doing something wrong, or is this a browser bug (on both chrome &amp; ff) ??</p>