Real Quick "Check All" with Prototype
Checking all check boxes is a pretty easy Javascript to write except when you are using multiple names or IDs for your elements. Then it becomes a bit of a pain. In walks Prototype.
Prototype has the function getElementsByClassName() which is a life saver in some instances. Using this, we can easily write a check all function without the need of keeping the check box names the same, which is not always convenient.
Now all we need to do is just call our Javascript in our forms to check all:
Where CheckBoxClass is your class.
Fini!