Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bradoyler/jquery.togglecontrols

A declarative way to use $.toggleClass
https://github.com/bradoyler/jquery.togglecontrols

Last synced: 11 days ago
JSON representation

A declarative way to use $.toggleClass

Awesome Lists containing this project

README

        

### toggleControls - jQuery plugin to help with `$.toggleClass()`

#### [Demo](http://bradoyler.github.io/jquery.togglecontrols/examples/)

#### Default Options
```js
{
toggleClass: 'is-hidden',
targetActiveClass: 'is-active',
eventName:'click',
selector:'.tc-dialog',
activeTarget:false
}
```

#### Example

```html

$(function (){
$('.js-toggle').togglecontrols();
});


Toggle Control demo

Panel


```