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!
jQuery(selector).on("multiclick", { clicks: # }, callbackFunc);
jQuery 1.7+
James M. Greene (james.m.greene@gmail.com)
James M. Greene (james.m.greene@gmail.com)
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