mercredi 7 septembre 2016

how to Uncheck all (Select all) CheckBoxes in ASP.Net DataList using JavaScript and jQuery?

<asp:CheckBox ID = "chkHeader" runat="server" Text = "Select All" />
<hr />
<asp:DataList ID="dlCustomers" runat="server" RepeatColumns="2" CellPadding = "5">
    <ItemTemplate>
        <table class = "table" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <th colspan = "3" align = "left">
                    <asp:CheckBox ID="chkRow" runat="server" Font-Bold = "true" Text = '<%# Eval("Name")%>' />
                </th>
            </tr>
            <tr>
                <td>Customer Id</td>
                <td><%#Eval("Id")%></td>
            </tr>
                <tr>
                <td>Country</td>
                <td><%#Eval("Country")%> </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>

This is my code and my html page i want to select all checkbox using jquery or javascript

Please help me.




Aucun commentaire:

Enregistrer un commentaire