a jquery plugin for managin class toggling
use like
$( function() {
$('.toggle').classy({
target: $("body"),
className: 'active-class',
clickOff: true,
indexClass: false
});
});
the placement of the active class
the active class to apply
should clicking anywhere else remove the class
adds ele-(index) if called on a group of nodes w the same class
fires on click callback
fires when you click off / deactivate state