Hi,

I'm trying to get the .value as well as the .text value of each item in the checboxlist.

The problem i'm having is, i'm only able to get the checboxlist.item[i].text data but not the checboxlist.item[i].value data.

I tried the following code but both gives back the .text data.
HTML Code:
$(document).ready(function () {

                                  $('.checkbox label').each(function () {
                                  
                                   
                                    alert($(this).parent().children("label").text());
                                    alert($(this).parent().children("label").html());

                                                                        
                                  });
                              });


This what my checkbox list looks like


HTML Code:
    <asp:CheckBoxList ID="CheckBoxList1" runat="server" CssClass="checkbox">
        <asp:ListItem Value="ABC">hi1</asp:ListItem>
        <asp:ListItem Value="CDE">hi2</asp:ListItem>
        <asp:ListItem Value="ACE">hi3</asp:ListItem>
        <asp:ListItem Value="ABD">hi4</asp:ListItem>
    </asp:CheckBoxList>
Thanks