how to work with JQuery function in All Browsers...
please help me..
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 14, 2013, 7:47 PM EST
manjula d131 reputationPosted Nov 14, 2013, 9:32 PM EST
$(document).ready(function () {
var headerCheckBox = $("input[id$='chkAll']");
var rowCheckBox = $("#RepeaterTable input[id*='chkChild1']");
headerCheckBox.click(function (e) {
rowCheckBox.attr('checked', headerCheckBox.is(':checked'));
});
rowCheckBox.click(function (e) {
var rowCheckBoxSelected = $("#RepeaterTable input[id*='chkChild1']:checked");
if (rowCheckBox.length == rowCheckBoxSelected.length) {
headerCheckBox.attr("checked", "checked");
}
else {
headerCheckBox.attr("checked", false);
}
});
});
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 14, 2013, 9:37 PM EST
manjula d131 reputationPosted Nov 14, 2013, 11:02 PM EST
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 14, 2013, 11:23 PM EST
Place all the scripts at the bottom of the page.
try to attach the click event with on or bind.
headerCheckBox.bind("click", function)
headerCheckBox.on("click", function)
manjula d131 reputationPosted Nov 17, 2013, 10:37 PM EST
this is my UI code:
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 17, 2013, 11:57 PM EST