I would like to execute some function when the user presses for 2 seconds on a div.
2 seconds
Is it possible ?
Here is my code to detect the click on the
In the two years since this question was asked an awesome plugin called jQuery Finger was invented:
http://ngryman.sh/jquery.finger/
$('div').on('press', function(e) { console.log(this, e); });