mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-25 15:31:05 +00:00
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
function checkAll(bool) {
|
|
|
|
var inputs = document.getElementById('multi_form').getElementsByTagName('input');
|
|
|
|
for (var i=0; i<inputs.length; i++) {
|
|
if (inputs[i].type == 'checkbox')
|
|
inputs[i].checked = bool;
|
|
}
|
|
}
|