You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
468 B
JavaScript
18 lines
468 B
JavaScript
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].disabled)
|
|
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;
|
|
}
|
|
}
|