Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function checkAllInRow() {
- // Determine the row number from the field name of the button that called this function
- var row = event.target.name.split(".")[1];
- // Get the value of this check box
- var v = event.target.value;
- // Set the new value check box state
- var nv = v === "Off" ? false : true;
- // Loop through the check boxes in the row and toggle their values
- for (var col = 1; col < 21; col += 1) {
- getField("cb." + row + "." + col).checkThisBox(0, nv);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement