How to fetch the value of selected checkbox inside a checkboxList?
<p>I want to know the selected value of the markup below. So that I can disabled a textbox, if one of the checkbox is selected.</p>

<pre><code>    &lt;asp:CheckBoxList ID="ChkTest" runat="server" RepeatDirection="Horizontal" CssClass="toggleYesNo"&gt;
        &lt;asp:ListItem Value="1"&gt;Yes&lt;/asp:ListItem&gt;
        &lt;asp:ListItem Value="0"&gt;No&lt;/asp:ListItem&gt;
    &lt;/asp:CheckBoxList&gt;
</code></pre>

<p>I tried using this function it doesnot seem to work</p>

<pre><code>$(document).ready(function() {
    $("#&lt;%=ChkTest.ClientID %&gt;").click(function() {
        value = $(this).val();
        if(value=='1') {
            $('#atextbox').attr('disabled','');
         }
         else {
            $('#atextbox').attr('disabled','disabled');
         }           

    });
});
</code></pre>

<p>I also track the output HTML but the id the CheckBoxList the assigned to a table instead.</p>

<p><strong>UPDATED</strong></p>

<pre><code>&lt;table id="ChkTest" class="toggleYesNo" border="0"&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;input id="ChkTest_0" type="checkbox" name="ChkTest$0" /&gt;&lt;label for="ChkTest_0"&gt;Yes&lt;/label&gt;&lt;/td&gt;&lt;td&gt;&lt;input id="ChkTest_1" type="checkbox" name="ChkTest$1" /&gt;&lt;label for="ChkTest_1"&gt;No&lt;/label&gt;&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;
</code></pre>
