Skip to content

dlundgren/jquery-toggle-event

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

jquery.toggleEvent

A jQuery plugin for toggling events like .toggle() did pre 1.9.

Installation

Include script after the jQuery library:

<script src="/path/to/jquery.toggle-event.js"></script>

Usage

You may have as many handlers as you want and they will be called in order

$( "#target" ).toggleEvent(
	'click',
	function() {
		alert( "First handler for .toggle() called." );
	},
	function() {
		alert( "Second handler for .toggle() called." );
	}
);

Inspiration

(https://github.com/fkling/jQuery-Function-Toggle-Plugin)

Authors

David Lundgren

About

jQuery toggleEvent plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published