toggleElement.js: ON/OFF State Toggle Example

A tiny JavaScript library that allows you to trigger a function on the element whenever the toggle state changes.

Click To Toggle