Sir I am having checkbox in repeater on each row. When it get checked and unchecked the the function should fire. How should i call the function on checkbox to fire below event
I have modified below script as you have provided reference but the function is not firing.
<script type="text/javascript">
//$(function () {
//On UpdatePanel Refresh
debugger;
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
//
$("[id*=chkRow]").bind("click", function () {
//Find and reference the GridView.
var grid = $(this).closest("table");
//Find and reference the Header CheckBox.
var chkHeader = $("[id*=chkHeader]", grid);
//If the CheckBox is Checked then enable the TextBoxes in thr Row.
if (!$(this).is(":checked")) {
var td = $("td", $(this).closest("tr"));
//td.css({ "background-color": "#FFF" });
$("input[type=text]", td).val = null;
$("input[type=text]", td).attr("disabled", "disabled");
} else {
var td = $("td", $(this).closest("tr"));
//td.css({ "background-color": "#D8EBF2" });
$("input[type=text]", td).removeAttr("disabled");
}
//Enable Header Row CheckBox if all the Row CheckBoxes are checked and vice versa.
if ($("[id*=chkRow]", grid).length == $("[id*=chkRow]:checked", grid).length) {
chkHeader.attr("checked", "checked");
} else {
chkHeader.removeAttr("checked");
}
});
//
}
});
};
//Enable Disable TextBoxes in a Row when the Row CheckBox is checked.
//});
</script>