I want to create a column of checkboxes that belong to different Purchase Orders.
Normally I would just name each checkbox like this:
<input type="checkbox" name="input[$poid][status]" value="checked">
So it submits as a multi dimensional array
The problem is, I want to put a "Check All" button that selects all of the checkboxes, which can only be done with javascript.
Lucky for me, javascript cannot target a checkbox that has a bracket "[" in its name. You get a syntax error, "invalid input" or some garbage.
Surely someone else has figured out a way to have your cake and eat it too?