jQuery Mobile Events
jQuery Mobile Events Reference Manual
The following list is all jQuery Mobile events.
**Note:** Please use the on() method to bind events.
| Events | Description |
|---|---|
| hashchange | Enables markable #hash history; the hash value changes when a separate click occurs, such as when a user clicks the back button, which is handled by the hashchange event. |
| navigate | Wraps the 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; this method triggers 2 events: the pagebeforechange event before the transition, and pagechange (success) or pagechangefailed (failure) after the transition completes. |
| pagebeforecreate | Triggered when a page is initialized, before initialization. |
| pagebeforehide | Triggered after a page transition, before the old page is hidden. |
| pagebeforeload | Triggered before a load request is sent |
| pagebeforeshow | Triggered after a page transition, before it is shown. |
| pagechange | Triggered after a page transition succeeds. Use $.mobile.changePage() to switch pages; this method triggers 2 events: the pagebeforechange event before the transition, and pagechange (success) or pagechangefailed (failure) after the transition completes. |
| pagechangefailed | Triggered when a page transition fails. Use $.mobile.changePage() to switch pages; this method triggers 2 events: the pagebeforechange event before the transition, and pagechange (success) or pagechangefailed (failure) after the transition completes. |
| pagecontainerbeforeload | Triggered before any request is loaded |
| pagecontainerload | Triggered after a page is successfully loaded and inserted into the DOM |
| pagecontainerloadfailed | Triggered when page loading fails |
| pagecreate | Triggered after the page is successfully created, but before enhancement is complete. |
| pagehide | Triggered after the old page is hidden following a page switch. |
| pageinit | Deprecated after version 1.4.0, use pagecreate Deprecated. Triggered when the page is initialized. |
| pageload | Deprecated after version 1.4.0, use pagecontainerload Deprecated. Triggered after the page is fully loaded. |
| pageloadfailed | Deprecated after version 1.4.0, use pagecontainerloadfailed Deprecated. Triggered if the page request fails. |
| pageremove | Triggered before the window view removes an external page from the DOM. |
| pageshow | Triggered on the "to" page after the transition animation completes. |
| scrollstart | Triggered when the user starts 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 across an element from the left by more than 30px. |
| swiperight | Triggered when the user swipes across an element from the right by more than 30px. |
| tap | Triggered when the user taps an element. |
| taphold | Triggered when an element is tapped and held for one second. |
| throttledresize | Enable markable #hash history |
| updatelayout | Triggered by jQuery Mobile widgets 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 |