# BackendPro User Guide Version 0.3.1

Search User Guide

# Javascript

Throughout BackendPro there are simple scripts used to provide the user with added functionaly.

Note: All scripts discussed on this page are loaded by default by BackendPro by the Page class.

## Multiple Check Checkboxes

Throughout BackendPro checkboxes are used so multiple items can be selected and an action performed on those actions. To make the job simpler for a user wanting to select all the items, its possible to create a checkbox which when checked will check all checkboxes related to it. To use this you don't need any javascript, you just need to setup the checkboxes in a specific way:

`<form>
<input type="checkbox" name="`all`" value="`myCheckbox`">
<input type="checkbox" name="myCheckbox[]" value="1">
<input type="checkbox" name="myCheckbox[]" value="3">
<input type="checkbox" name="myCheckbox[]" value="2">
</form>`

As you can see from the above example, there is a checkbox at the top called `all`. This has a value equal to the checkboxes it has control over. Its really that simple.