I have had partial success using this method - but I'm running into an issue with the checkbox elements being checked, even though they use a different name.
I have elements['department[]',i] and elements['office[]',i] in 2 different functions. They are both checked or not, based on a master checkbox, one for department only, for all departments and offices.
If I check the deparment-only, it checks everything - departments and offices.
Any suggestions? Is the first part of the elements variable not sufficient to discriminate between the two?
Eman