Skip to content

Instantly share code, notes, and snippets.

View ashirazi's full-sized avatar

Arild Shirazi ashirazi

  • Washington D.C.
View GitHub Profile
@ashirazi
ashirazi / JQuery Multi Click README
Last active September 25, 2015 15:38 — forked from bokmann/README
Treat multiple clicks as single-click in browsers
Code
// Treat double-click like a single-click
$("button").multi_click(function () {
alert("It's all good.")
})
// Different actions for single- or double-click
$("button").multi_click(function () {
alert("Try double-clicking me!")