devilbox/.devilbox/www/htdocs/vendor/phppgadmin-7.13.0/multiactionform.js
2020-11-07 15:52:05 +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;
}
}