frequency decoder

Unobtrusive Check/Uncheck script

The following form contains two sets of checkboxs, one set given the className "chkboxgroup" (containing 3 checkboxs) and another no className at all (the last checkbox). The form itself has been given the className "fdCheckbox-chkboxgroup" which tells the script to create the check/uncheck buttons only for the group of checkboxs whose className includes (you guessed it), "chkboxgroup".

Additionally, no placeholder div is present and so the buttons are created as child elements of the form itself.

Multiple Checkbox group test 1

:

:

:

The following checkbox should be left untouched by the check/uncheck action as it does not have the className "chkboxgroup":

:

The following form contains two sets of checkboxs, one given the className "groupa" (containing 3 checkboxs) and another the className "groupb" (also containing 3 checkboxs). The form has been given the className "fdCheckbox-groupa fdCheckbox-groupb" which tells the script to create individual check/uncheck buttons for both groups of checkboxs.

Additionally, a placeholder div for the button creation has been positioned above both of the checkbox groups.

Multiple Checkbox group test 2

:

:

:

The second group of checkboxs given the classname "groupb" starts here.

:

:

:

Read the related post (and view the source code to get a better idea of whats going on behind the scenes).