title: jQuery validation method for group of check boxes with different names
body: <p>I have a group of checkboxes that due to the integration with another platform must have separate names although they are all related.</p>
  
  <pre><code>&lt;div class="form-group col-xs-6 checkbox-group"&gt;
        &lt;label class="block input-group" for="Field5"&gt;Type of Insurance&lt;span class="required-mark"&gt;*&lt;/span&gt;&lt;/label&gt;
        &lt;span&gt;&lt;input type="checkbox" name="Field5" class="validate checkbox-group" value="Auto" &gt;Auto&lt;/span&gt;
        &lt;span&gt;&lt;input type="checkbox" name="Field6" class="validate checkbox-group"  value="Home" &gt;Home&lt;/span&gt;
        &lt;span&gt;&lt;input type="checkbox" name="Field7" class="validate checkbox-group"  value="Auto &amp;amp; Home" &gt;Home&lt;/span&gt;
        &lt;span&gt;&lt;input type="checkbox" name="Field8" class="validate checkbox-group" value="Renters"&gt;Condo, Co-op,Renters&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Generally you could use Field[] and validate that within the jQuery validation rules and set it to required. I can't set every field to required as only one of the checkboxes must be checked but they can all also be checked.</p>
  
  <p>That leads me to believe I will need a custom method.</p>
  
  <pre><code>jQuery.validator.addMethod("checkone", function(){
      if( $(".checkbox-group").is(":checked") ){
        return true;
      }
      return false; 
  }, "Please check at least of one");
  </code></pre>
  
  <p>What I can't seem to figure out is how to make just one error message appear on screen. The validation works but outputs four separate errors when none of the checkboxes are checked.</p>
  
  <p>The rule is added to every checkbox</p>
  
  <p><code>$(this).rules('add', { checkone: true }</code>);</p>