title: jQuery Validation plugin: validate check box
body: <p>I am using jQuery Validation plugin to validate check box since it does not have default option, One should be selected and max two check boxes can be selected, these is the criteria. I am not getting any error and it is not validating. I am extending it like below,</p>
  
  <pre><code>  &lt;input type="checkbox" name="test[]" /&gt;x
     &lt;input type="checkbox" name="test[]"  /&gt;y
     &lt;input type="checkbox" name="test[]" /&gt;z
       $("#formid").validate({
    rules: {
      test[]: { 
  
              required: function(elem)
              {
                  return $("input.select:checked").length &gt; 0;
              }
  
            },
  messages: { 
  
      test[]: "You must check at least 1 box"
    }
   });
  </code></pre>