forked from abitgone/jQuery-Plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ClassToggle: Add ability to explicitly add/remove classes
ClassToggle can now explicitly add or remove classnames from target elements. To do this, simply prepend -- or ++ to explicitly remove or add class names to the target element(s). For example, to toggle one class whilst explicitly removing another, use: data-classtoggle-class="toggle-this,--remove-this" To remove one class whilst adding another, use: data-classtoggle-cass="++add-this,--remove-this"
- Loading branch information
Showing
2 changed files
with
42 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters