dev

Toggler is a script that allows to use simple set of rules to create toggleable elements on a page.

Installation

Usage

Toggler will work on elements having _toggler class. Add _toggle class to elements to toggle. You can use _toggle_inithide and _toggle_initshow classes to set initial state. Full documentation you can read here.

Example

* <span class="_toggler _toggle _toggle_inithide">span1</span><span class="_toggler _toggle">span2</span>
* <span class="_toggler _toggle _toggle_inithide">span3</span><span class="_toggler _toggle">span4</span>

produces...

Text above can be found here (edit)