title: how to get count of checked checkboxes from two checkbox lists using jquery?
body: <p>I have two checkbox lists, i want to get the count of checked elements of these. below is my code:</p>
  
  <pre><code>&lt;div id="divAreaListingByLocation"&gt;
    &lt;asp:CheckBoxList ID="chklstArea" CssClass="chkarea" RepeatColumns="6" RepeatDirection="Vertical"
          runat="server" OnSelectedIndexChanged="chklstArea_SelectedIndexChanged" AutoPostBack="true"&gt;
    &lt;/asp:CheckBoxList&gt;
  &lt;/div&gt;
  &lt;asp:Repeater ID="repRooms" runat="server" OnItemDataBound="repRooms_ItemDataBound"&gt;
      &lt;ItemTemplate&gt;
          &lt;div style="height: 100%; float: none;"&gt;
              &lt;asp:Panel ID="pnlRoomheader" runat="server" Style="width: 98%; background-color: #86ADD6;
                  color: #4A4A4A; height: 20px; margin-top: 10px; text-align: left; padding: 5px;
                  font-size: 15px; font-weight: bold;"&gt;
                  &lt;asp:Label ID="lblAreaName" runat="server"&gt;&lt;/asp:Label&gt;
                  &lt;asp:Label ID="lblAreaId" Style="display: none;" runat="server"&gt;&lt;/asp:Label&gt;
              &lt;/asp:Panel&gt;
              &lt;div id="divRoomListingByLocation" style="padding-bottom: 10px; padding-top: 10px;"&gt;
                  &lt;asp:CheckBoxList ID="chkRoomList" CssClass="chkRooms" RepeatColumns="6" RepeatDirection="Vertical"
                      runat="server"&gt;
                  &lt;/asp:CheckBoxList&gt;
                  &lt;asp:Label ID="lblRoomMessage" Text="This Area does not have any room." ForeColor="Red"
                      runat="server"&gt;&lt;/asp:Label&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>What i want to do is: if user not checked any of the check box from these two then it will prompt a alert to say check one of the checkbox from both lists on the click of a button. </p>
  
  <p>I have tried to it with class but the class is append to the table render in html of checkboxlist.</p>