Filter-box

This HTML page demonstrates how to use the filterbox.js script to show and hide content on your page. The page consists of a <section class="filterbox-data"> tag containing checkboxes, and a <section class="filterbox-content"> containing content to be filtered. Click the filters below to show and hide their content.

The first column of controls also has the radio-checkbox-group class applied, which is a useful enhancement to these sorts of controls. After you have experimented with this page, you might want to look at the filterbox with styling demo.

Controls

Press and hold (or or Option-click on MacOS or Alt-click on Windows) on a checkbox in the first column to select it and deselect all others.

Content

Cat

Rat

Dog

Gorilla

Eagle

Crow

Psittacosaurus

Cobra

Komodo Dragon


Things to observe when you inspect the page elements as you interact with the page: