View Single Post
  #5  
Old 5th August 2014, 09:54
mpx mpx is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 39
Default
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
Reply With Quote