Where are the DataValueField values for a CheckBoxList stored?
<p>I have this CheckBoxList on a page:</p>

<pre><code>&lt;asp:checkboxlist runat="server" id="Locations" datasourceid="LocationsDatasource"
   datatextfield="CountryName" datavaluefield="CountryCode" /&gt;
</code></pre>

<p>I'd like to loop through the checkbox elements on the client using Javascript and grab the value of each checked checkbox, but the values don't appear to be available on the client side. The HTML output looks like this:</p>

<pre><code>&lt;table id="ctl00_Content_Locations" class="SearchFilterCheckboxlist" cellspacing="0" cellpadding="0" border="0" style="width:235px;border-collapse:collapse;"&gt;
&lt;tr&gt;
 &lt;td&gt;&lt;input id="ctl00_Content_Locations_0" type="checkbox" name="ctl00$Content$Locations$0" /&gt;&lt;label for="ctl00_Content_Locations_0"&gt;Democratic Republic of the Congo&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
 &lt;td&gt;&lt;input id="ctl00_Content_Locations_1" type="checkbox" name="ctl00$Content$Locations$1" /&gt;&lt;label for="ctl00_Content_Locations_1"&gt;Central African Republic&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
 &lt;td&gt;&lt;input id="ctl00_Content_Locations_2" type="checkbox" name="ctl00$Content$Locations$2" /&gt;&lt;label for="ctl00_Content_Locations_2"&gt;Congo&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
 &lt;td&gt;&lt;input id="ctl00_Content_Locations_3" type="checkbox" name="ctl00$Content$Locations$3" /&gt;&lt;label for="ctl00_Content_Locations_3"&gt;Cameroon&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
 &lt;td&gt;&lt;input id="ctl00_Content_Locations_4" type="checkbox" name="ctl00$Content$Locations$4" /&gt;&lt;label for="ctl00_Content_Locations_4"&gt;Gabon&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;&lt;tr&gt;
 &lt;td&gt;&lt;input id="ctl00_Content_Locations_5" type="checkbox" name="ctl00$Content$Locations$5" /&gt;&lt;label for="ctl00_Content_Locations_5"&gt;Equatorial Guinea&lt;/label&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p></p>

<p>The values ("cd", "cg", "ga", etc.) are nowhere to be found. Where are they? Is it even possible to access them on the client, or do I need to build this checkboxlist myself using a repeater or something?</p>
