jQuery Mobile Events
jQuery Mobile Event Reference Manual
The following list includes all jQuery Mobile events.
Note: Use the on() method to bind events.
Event | Description |
---|---|
hashchange | Enables hashtag history; the hash value changes when a single click occurs, such as when a user clicks the back button, and is handled via the hashchange event. |
navigate | Encapsulates hashchange and popstate events. |
orientationchange | Orientation change event, triggered when the user rotates the mobile device vertically or horizontally. |
pagebeforechange | Triggered before a page transition. Use $.mobile.changePage() to switch pages, which triggers two events: pagebeforechange before the transition, and either pagechange (success) or pagechangefailed (failure) after the transition. |
pagebeforecreate | Triggered during page initialization, before initialization. |
pagebeforehide | Triggered after a page transition, before the old page is hidden. |
pagebeforeload | Triggered before a load request is issued. |
pagebeforeshow | Triggered after a page transition, before the new page is shown. |
pagechange | Triggered after a successful page transition. Use $.mobile.changePage() to switch pages, which triggers two events: pagebeforechange before the transition, and either pagechange (success) or pagechangefailed (failure) after the transition. |
pagechangefailed | Triggered if a page transition fails. Use $.mobile.changePage() to switch pages, which triggers two events: pagebeforechange before the transition, and either pagechange (success) or pagechangefailed (failure) after the transition. |
pagecontainerbeforeload | Triggered before loading any request. |
pagecontainerload | Triggered after a page is successfully loaded and inserted into the DOM. |
pagecontainerloadfailed | Triggered if a page load fails. |
pagecreate | Triggered after a page is successfully created, but before enhancements are complete. |
pagehide | Triggered after a page transition, after the old page is hidden. |
pageinit | Deprecated as of version 1.4.0, use pagecreate instead. Triggered during page initialization. |
pageload | Deprecated as of version 1.4.0, use pagecontainerload instead. Triggered after a page is fully loaded successfully. |
pageloadfailed | Deprecated as of version 1.4.0, use pagecontainerloadfailed instead. Triggered if a page request fails. |
pageremove | Triggered before an external page is removed from the DOM in the viewport. |
pageshow | Triggered after the transition animation completes on the "destination" page. |
scrollstart | Triggered when the user begins scrolling the page. |
scrollstop | Triggered when the user stops scrolling the page. |
swipe | Triggered when the user swipes horizontally on an element. |
swipeleft | Triggered when the user swipes more than 30px from the left across an element. |
swiperight | Triggered when the user swipes more than 30px from the right across an element. |
tap | Triggered when the user taps an element. |
taphold | Triggered when an element is tapped and held for one second. |
throttledresize | Enables hashtag history. |
updatelayout | Triggered by jQuery Mobile components that dynamically show/hide content. |
vclick | Virtualized click event handler. |
vmousecancel | Virtualized mousecancel event handler. |
vmousedown | Virtualized mousedown event handler. |
vmousemove | Virtualized mousemove event handler. |
vmouseout | Virtualized mouseout event handler. |
vmouseover | Virtualized mouseover event handler. |
vmouseup | Virtualized mouseup event handler. |