Checkboxes aren't arrays on the client-side the empty bracket syntax will create an array on the server-side, but with
JS you have to take a different approach since
JS will only access a checkbox individually.
One way of handling this is to fill in the numbers
<input name="checkbox[0]"...
<input name="checkbox[1]"...
<input name="checkbox[2]"...
And then modify your
JS code accordingly, you have to reference the checkbox by its name specifically. Don't remember the
JS syntax but maybe something like this:
if (document.getElementsByName('checkbox[' + counter + ']').checked == TRUE)
{
...
HTH!
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::