Properties

jQuery Mobile also exposes a set of properties that are publicly available so you do not have to write your own jQuery selectors to access common components.

$.mobile.activePage
Gets the page or dialog element that is the currently active or visible. The active page is assigned the CSS class as specified by $.mobile.activePageClass.

$.mobile.firstPage
This is the first page defined within the page container ($.mobile.pageContainer). For instance, the $.mobile.firstPage will be shown when no location.hash value exists or when $.mobile.hashListeningEnabled has been disabled. For example, in a multi-page document the $.mobile.firstPage is initially shown by default.

$.mobile.pageContainer
The HTML container where all pages live. Within jQuery Mobile, the body element is the container that contains all pages. All Ajax-loaded pages and all internal pages of a multi-page document will exist within the page container.

Copy
copy

Highlight
highlight

Add Note
note

Get Link
link


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *