I have a series of checkboxes on my page called sid[] - I'm using the brackets so as to generate the automatic array in PHP on submission.
I now have a requirement to be able to check/uncheck all checkboxes called sid[] via javascript but can't find a script that isn't broken by the [] in the name!?
Although each checkbox has the same 'name', they each have an individual 'id' (sid1, sid2, sid3), can anyone propose a nice solution that preferably uses the 'name' (as it'll be neater), or alternatively makes use of the unique 'id'?