Category: Methods

jQuery Mobile exposes several methods on the $.mobile object for use in your applications.

.enhanceWithin()

Enhance all the children of all elements in the set of matched elements.

jqmData()

Store arbitrary data associated with the specified element. Returns the value that was set.

jqmEnhanceable()

Filter method to respect data-enhance=false parent elements during manual enhancement.

jqmHijackable()

For users that wish to respect data-ajax=false parent elements during custom form and link binding jQuery Mobile provides the $.fn.jqmHijackable filter method.

jQuery.mobile.changePage()

Programmatically change from one page to another.

Note: jQuery.mobile.changePage is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use the pagecontainer widget’s change() method instead.

jQuery.mobile.getDocumentBase()

Utility method for retrieving the original document base URL.

Note: jQuery.mobile.getDocumentBase is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use the jQuery.mobile.path.getDocumentBase() method instead.

jQuery.mobile.getDocumentUrl()

Retrieve the URL of the original document.

Note: jQuery.mobile.getDocumentUrl is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use the jQuery.mobile.path.getDocumentUrl() method instead.

jQuery.mobile.loadPage()

Load an external page, enhance its content, and insert it into the DOM.

Note: jQuery.mobile.loadPage is deprecated as of jQuery Mobile 1.4.0 and will be removed in 1.5.0. Use the pagecontainer widget’s load() method instead.

jQuery.mobile.path.parseUrl()

Utility method for parsing a URL and its relative variants into an object that makes accessing the components of the URL easy.

© The jQuery Foundation and other contributors
Licensed under the MIT License.
https://api.jquerymobile.com/category/methods