How do I acquire the value of a ASP label if it is nested? (client-side)
<p>So there is a ASP checkboxlist that gets rendered to the table and in the code behind the checkboxes get bound with a label from a code table.  I need to display a text box only if a certain checkbox is checked off.</p>

<pre><code>&lt;table id="chkSomeCheckbox"&gt;
    &lt;tbody&gt;
       &lt;tr&gt;
     &lt;td&gt;
          &lt;input type="checkbox" id="chkSomeCheckbox_0"&gt;
          &lt;label for="chkSomeCheckbox_0"&gt;Acme&lt;/label&gt;
         &lt;/td&gt;
         &lt;td&gt;
          &lt;input type="checkbox" id="chkSomeCheckbox_1"&gt;
          &lt;label for="chkSomeCheckbox_1"&gt;Other&lt;/label&gt;
         &lt;/td&gt;
       &lt;/tr&gt;
    &lt;/tr&gt;
   &lt;/tbody&gt;
 &lt;/table&gt;
</code></pre>

<p>The checkboxlist renders a table which the  element retains the ID.  I have tried to just get the value of the label when a checkbox is checked and then go from there to create my logic - but I can't seem to be able to grab the value of the label.  I have tried the following different ways:</p>

<pre><code>$("#&lt;%chkSomeCheckbox.ClientID&gt; input").next("label").val();
</code></pre>

<p>or</p>

<pre><code>$("#&lt;%chkSomeCheckbox.ClientID&gt; input").next().val();
</code></pre>

<p>I am using the input selector because when I get this first part working, I will need to do some logic on it.</p>

<p>Any thoughts?</p>
