blob: 8a6e2c693f418f602419cd229a83b6f280b5db9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
function check_all(id) {
var obj = document.getElementById(id);
var boxes = obj.getElementsByTagName("input");
for(var i = 0; i < boxes.length; i++) {
if(boxes[i].type == "checkbox")
boxes[i].checked = true;
}
}
function uncheck_all(id) {
var obj = document.getElementById(id);
var boxes = obj.getElementsByTagName("input");
for(var i = 0; i < boxes.length; i++) {
if(boxes[i].type == "checkbox")
boxes[i].checked = false;
}
}
|