Hello Folks,

I have 7 or 8 checkboxes. When a user clicks on a button, I want to check to see if atleast one of the checkboxes is checked. Otherwise I want to alert the user to check a box.

<asp:CheckBox ID="CheckBoxAll" runat="server" Text="Select All"  />
                <asp:CheckBoxList ID="CheckBoxListRuns" runat="server" 
                    ForeColor="Black" BorderColor="#3333CC">
                  <asp:ListItem>Run today</asp:ListItem>
                  <asp:ListItem>Run tomorrow</asp:ListItem>
                  <asp:ListItem>Never Run</asp:ListItem>
So far this is the code I wrote. Any further help from here is greatly appreciated. Thanks
function check() {
                 var checkboxCollection = document.getElementById('<%=CheckBoxListRuns.ClientID %>').getElementsByTagName('input');

                 for (var i = 0; i < checkboxCollection.length; i++) {
                     //Here I need to put a validation check.