devilbox/.devilbox/www/htdocs/vendor/phppgadmin-5.6.0/multiactionform.js
2018-12-28 22:38:09 +01:00

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;
}
}