// Jquery function
// Html or Asp.net
function CheckUncheck_AllCheckBoxes(chk, CheckParentID) {
$('[id*=' + CheckParentID + ']').find("input:checkbox").each(function () {
if (this != chk) {
this.checked = chk.checked;
}
});
return false;
}
// Html or Asp.net
<asp:CheckBox runat="server" ID="Chk_allFrequency" onclick="CheckUncheck_AllCheckBoxes(this,'Parent ID static');"
CssClass="pull-left"
Text="Frequency"
Checked="true"
/>
No comments:
Post a Comment