Example

Toggle Check Boxes using Prototype Library

Example using: item.checked = !item.checked;

Toggle All Checkboxes: