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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Nov 18, 2013, 4:57 AM
manjula dPosted Nov 18, 2013, 3:37 AM
this is my UI code:
Jaganathan BantheswaranPosted Nov 15, 2013, 4:23 AM
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 dPosted Nov 15, 2013, 4:02 AM
Jaganathan BantheswaranPosted Nov 15, 2013, 2:37 AM
manjula dPosted Nov 15, 2013, 2:32 AM
$(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 BantheswaranPosted Nov 15, 2013, 12:47 AM