how to select multiple checkbox in asp.net form page using single check box. go throgh this code in jquery.
<head runat="server">
<script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
<title></title>
<script type="text/javascript" language="javascript">
var $j = jQuery.noConflict();
$j(document).ready(function () {
$j('#chkbox').click(function () {
var chkid = $j('#chkbox').attr("checked");
chkid.onc
var id = $j('.chk input');
for (var i = 0; i < id.length; i++) {
if (chkid) {
id[i].checked = true;
}
else {
id[i].checked = false;
}
}
});
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<ul>
<li>
<asp:CheckBox ID="chkbox" runat="server" />
</li>
<li>
<asp:CheckBox ID="CheckBox1" runat="server" CssClass="chk" /></li>
<li>
<asp:CheckBox ID="CheckBox2" runat="server" CssClass="chk" />
</li>
<li>
<asp:CheckBox ID="CheckBox3" runat="server" CssClass="chk" />
</li>
<li>
<asp:CheckBox ID="CheckBox4" runat="server" CssClass="chk" /></li>
<li>
<asp:CheckBox ID="CheckBox6" runat="server" CssClass="chk" />
</li>
<li>
<asp:CheckBox ID="CheckBox5" runat="server" CssClass="chk" /></li>
</ul>
</div>
</form>
</body>