Return to Snippet

Revision: 28876
at July 15, 2010 07:17 by Jamie


Initial Code
$('#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;
});

Initial URL


Initial Description


Initial Title
Click Timer For jQuery

Initial Tags
jquery

Initial Language
jQuery