Jump to content

[SOLVED] Check All Button


lalabored

Recommended Posts

this is the javascript you will need

 

function selectAll() {

var box = document.getElementsByName('id[]');

if(box) {

var boxes = box.length;

for(var i = 0; i < boxes; i++)

{ if(box.checked)

{

box.checked = false;

}

else

{box.checked = true;}

 

}

}

}

 

It doesn't work =\

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.