JQuery verify at least one checkbox is checked with
<p>I have an asp.net webform with a group of related checkboxes.  I would like to verify that at least one checkbox is checked in the group when a submit button is clicked. I've tried to implement two different solutions with no success. When I try to return the length of the checked checkboxes by class name, I receive 0.  When I try to return the ischecked value by name, I receive false.  If I view the source of page, the checkboxes have the "checked" attribute.  Can someone review my html and let me know if I'm doing something wrong?</p>

<pre><code>  &lt;tr&gt;
      &lt;td  colspan="2"&gt;
      &lt;asp:CheckBox ID="cbga" runat="server"  CssClass="group1" name="group1[]" Text="A" /&gt;
      &lt;asp:CheckBox ID="cbgb" runat="server" CssClass="group1"  name="group1[]" Text="B" /&gt;
     &lt;asp:CheckBox ID="cbgc" runat="server" CssClass="group1"  name="group1[]" Text="C" /&gt;
&lt;/tr&gt;

function ValChk(source, args) {
              var IsChecked = $(".group1:checked").length;//returns zero
           // var IsChecked = $('input[name="group1[]"]').is(':checked'); //returns false
              alert(IsChecked);    
        }

 &lt;asp:CustomValidator ID="cvchks" runat="server" Display="dynamic"   
      ClientValidationFunction="ValChk" ErrorMessage="Please select a code"                                         
&gt;&lt;/asp:CustomValidator&gt;
</code></pre>
