/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#my_awesome_element').click(function(event){ var element = this; if (this.timer) clearTimeout(element.timer); this.timer = setTimeout(function(){ console.log("Nothing Pressed for 1000ms"); },1000); return true; });