title: Loop through ASP.NET DataList with Javascript
body: <p>How can we loop through all ASP.NET DataList item's and access the value of all item's in the ItemTemplate (In this case, the checkbox and the label) with Javascript ?</p>
  
  <p>Here's the asp.net :</p>
  
  <pre><code>&lt;asp:DataList ID="DataGroup" ClientIDMode="Static" runat="server" DataKeyField="GroupName" RepeatColumns="2" RepeatDirection="Vertical" HeaderStyle-VerticalAlign="Top"&gt;
       &lt;ItemTemplate&gt;
            &lt;asp:CheckBox ID="chk1" runat="server"/&gt;
            &lt;asp:Label ID="ProductIDLabel" runat="server" Text='&lt;%# Eval("GroupName") %&gt;' style="padding-right:30px;"/&gt;
       &lt;/ItemTemplate&gt;
  &lt;/asp:DataList&gt;
  </code></pre>
  
  <p>I am not sure if I should use Jquery or just pure Javascript...</p>