jQuery Mobile tapholdEvent
Examples
Tap and hold on the <p> element (about one second) to hide it:
$("p").on("taphold",function(){
$(this).hide();
});
$(this).hide();
});
Try it Yourself »
Definition and Usage
The taphold event is triggered after tapping and holding on an element (about one second).
Syntax
$("selector").on("taphold",function(event){...})
| Parameter | Description |
|---|---|
| function(event) | Required. Specifies the function to execute when the swipe event is triggered. The function has an optional event object , the event object can be any jQuery event property (for example, event.target, event.type, etc.). For more information, please refer tojQuery Event Reference Manual 。 |

More Examples
Event Object
Use the
event.target property to return the DOM element that triggered the taphold event.
Other Extensions
jQuery Mobile Events