Fork me on GitHub

jquery.multiclick
by JamesMGreene

jQuery plugin that creates a bindable special event for a configurable number of clicks: "multiclick"

Have you ever wished that browsers threw an event when a user clicked an element a certain number of times? (No? OK, me neither... but this made for a good demonstration.) If you are [or can be] using jQuery 1.7+, then this simple jQuery extension can grant that wish for you!

Usage

jQuery(selector).on("multiclick", { clicks: # }, callbackFunc);

Dependencies

jQuery 1.7+

License

MIT License

Unit Tests

QUnit test suite

Demos

Author

James M. Greene (james.m.greene@gmail.com)

Contact

James M. Greene (james.m.greene@gmail.com)

Download

You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://github.com/JamesMGreene/jquery.multiclick