This JS code did not work for me.
Missing }
My javascript code:
Code:
<script type="text/javascript">
var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;
}
checkflag = "true";
return "Uncheck All";
} else {
for (i = 0; i < field.length; i++) {
field[i].checked = false;
}
checkflag = "false";
return "Check All";
}
}
</script>
in php.ini enable this line:
Quote:
; How many GET/POST/COOKIE input variables may be accepted
max_input_vars = 1000
|