title: Validation of checkboxes with the same name
body: <p>I need to show an error if none of the below checkboxes are checked using using JavaScript.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;tr&gt;
    &lt;td&gt;Status&lt;/td&gt;
    &lt;td colspan="3"&gt;
      &lt;input type="checkbox" name="chk_stat[]" value="single" id="chk_stat"&gt;single
  
      &lt;input type="checkbox" name="chk_stat[]" value="married" id="chk_stat"&gt;Married
  
      &lt;input type="checkbox" name="chk_stat[]" value="divorcee" id="chk_stat"&gt;Divorcee
  
      &lt;input type="checkbox" name="chk_stat[]" value="student" id="chk_stat"&gt;Student
    &lt;/td&gt;
  &lt;/tr&gt;</code></pre>
  </div>
  </div>
  </p>