I have two nested repeaters in C #. The outer part has some information about the grouping, and the inner part has a table with the number of X flags.
So, I will have Y number of tables. At the top of each table there will be a check box (as well as a check box in each row). What I want to do is select all the checkboxes in one table from the checkbox at the top of each table.
I can select ALL checkboxes in one pass as follows:
$(document).ready(function() {
$("#checkboxflipflop").click(function() {
var checked_status = this.checked;
$(".storecheckbox input").each(function() {
this.checked = checked_status;
});
});
});
I just can't figure out how to narrow the selection to the current table (the checkbox at the top of each table is on the first row).
thanks
EDIT .... sorry forgot to mention that we are on 1.26 jQuery and are not sure that I am allowed to lift us at all. This means that the "closest" does not exist.