title: Javascript to loop through asp checkboxes to see if any are checked
body: <p>I am having an issue looping though asp checkboxes in an ascx file to see each individual element's "state" (checked or not). Here is my code:</p>
  
  <pre><code>&lt;asp:ListView runat="server" ID="lvApplicationForms" OnItemCommand="lvAttachedDocuments_OnItemCommand"
      DataKeyNames="FormID" OnPreRender="lvApplicationForms_PreRender" OnItemDataBound="lvApplicationForms_ItemDataBound"&gt;
      &lt;ItemTemplate&gt;
          &lt;tr class="&lt;%# (Container.DisplayIndex + 1 )% 2 == 0 ? "EvenRow" : "OddRow" %&gt;" data-formname='&lt;%#Eval("FormName")%&gt;'&gt;
              &lt;td class="fieldName_td" style="text-align: center"&gt;
                  &lt;asp:CheckBox ID="cbIsExposed" runat="server" Style="text-align: center" onclick="javascript:return CheckedChange(this)" OnChecked='&lt;%# Eval("IsPublished") %&gt;'
                      Enabled='&lt;%# CanCounterSignAndExpose &amp;&amp; Convert.ToBoolean(Eval("CanBePublished")) %&gt;' /&gt;
              &lt;/td&gt;
              &lt;/tr&gt;
      &lt;/ItemTemplate&gt;
      &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>Essentially my issue is that I have a save button on the page that I want enabled only if at least one element in the checkboxes is checked. If none are, keep the save button disabled. I know how to disable the save button, I just don't know how to loop though the checkboxes to get their "state".</p>