Check box list with jquery

Check box list with jquery

Select all with jquery in asp.net
check box list select all by jquery
<script src="js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
            $('#chkAll').click(
             function () {
                 $("#CheckBoxList1 INPUT[type='checkbox']").attr('checked', $('#chkAll').is(':checked'));
             });
        });
</script>
<asp:CheckBox ID="chkAll" Text="Select All" runat="server" />
<br />
<hr />
<br />
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
     <asp:ListItem>asp.net</asp:ListItem>
     <asp:ListItem>html5</asp:ListItem>
     <asp:ListItem>wpf</asp:ListItem>
     <asp:ListItem>java</asp:ListItem>
     <asp:ListItem>jquery</asp:ListItem>
     <asp:ListItem>csharp</asp:ListItem>
</asp:CheckBoxList>
Check box list with jquery Check box list with jquery Reviewed by Bhaumik Patel on 5:38 AM Rating: 5