jQuery.mobile.path.makePathAbsolute()

Utility method for converting a relative file or directory path into an absolute path. Given a path that is relative to another absolute path, this utility will convert the relative path to an absolute path based on the given absolute path. jQuery.mobile.path.makePathAbsolute( relPath, absPath ) relPath

Configuring Defaults

Configuring Defaults Working with jQuery Mobile's Auto-initialization Unlike other jQuery projects, such as jQuery and jQuery UI, jQuery Mobile automatically applies many markup enhancements as soon as it loads (long before the document.ready event fires). These enhancements are applied based on jQuery Mobile's default settings, which are designed to work with common scenarios. If changes to the settings are needed, they are easy to configure. The mobileinit event When jQuery Mobile starts, it

jQuery.mobile.path.makeUrlAbsolute()

Utility method for converting a relative URL to an absolute URL. This function returns a string that is an absolute version of the relative URL passed in. jQuery.mobile.path.makeUrlAbsolute( relUrl, absUrl ) relUrl String

.unwrap()

Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place. The .unwrap() method removes the element's parent. This is effectively the inverse of the .wrap() method. The matched elements (and their siblings, if any) replace their parents within the DOM structure. .unwrap() version added: 1.4

.error()

Bind an event handler to the "error" JavaScript event. This method is a shortcut for .on( "error", handler ). As of jQuery 1.8, the .error() method is deprecated. Use .on( "error", handler ) to attach event handlers to the error event instead. The error event is sent to elements, such as images, that are referenced by a document and loaded by the browser. It is called if the element was not loaded correctly. For example, consider a page with a simple

jQuery.mobile.getInheritedTheme()

Retrieves the theme of the nearest parent that has a theme assigned. This method is no longer useful, since theme inheritance is implemented entirely in CSS as of jQuery Mobile 1.4.0. jQuery.mobile.getInheritedTheme( el, defaultTheme ) el jQuery A jQuery collection objec

tap event

Triggered after a quick, complete touch event. The jQuery Mobile tap event triggers after a quick, complete touch event that occurs on a single target object. It is the gesture equivalent of a standard click event that is triggered on the release state of the touch gesture. This plugin extends jQuery's built-in method. If jQuery Mobile is not loaded, calling the .tap() method may not fail directly, as the method still exists. However, the expec

.focusin()

Bind an event handler to the "focusin" event. This method is a shortcut for .on( "focusin", handler ) in the first two variations, and .trigger( "focusin" ) in the third. The focusin event is sent to an element when it, or any element inside of it, gains focus. This is distinct from the focus event in that it supports detecting the focus event on parent elements (in other words, it supports event bubbling). This event will likely be used together with

.focusout()

Bind an event handler to the "focusout" JavaScript event. This method is a shortcut for .on( "focusout", handler ) when passed arguments, and .trigger( "focusout" ) when no arguments are passed. The focusout event is sent to an element when it, or any element inside of it, loses focus. This is distinct from the blur event in that it supports detecting the loss of focus on descendant elements (in other words, it supports event bubbling). This event wil

Attribute contains prefix selector [name|=”value”]

Selects elements that have the specified attribute with a value either equal to a given string or starting with that string followed by a hyphen (-). This selector was introduced into the CSS specification to handle language attributes. jQuery( "[attribute|='value']" ) version added: 1.0 Examples: