jQuery.mobile.navigate()

Alter the url and track history. Works for browsers with and without the new history API. The $.mobile.navigate method provides a uniform history manipulation API for browsers that support the new history API and those that don't (hashchange). It works in concert with the navigate event by storing and retrieving arbitrary data in association with a URL (much like popState and replaceState). When the user returns to a URL set by the navigate met

.length

The number of elements in the jQuery object. The number of elements currently matched. The .size() method will return the same value. length version added: 1.0 Examples: Count the divs. Click to add more. <!doctype html> <html lang="en"> <head> <me

.insertAfter()

Insert every element in the set of matched elements after the target. The .after() and .insertAfter() methods perform the same task. The major difference is in the syntax-specifically, in the placement of the content and target. With .after(), the selector expression preceding the method is the container after which the content is inserted. With .insertAfter(), on the other hand, the content precedes the method, either as a selector expression or as m

.parents()

Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector. Given a jQuery object that represents a set of DOM elements, the .parents() method allows us to search through the ancestors of these elements in the DOM tree and construct a new jQuery object from the matching elements ordered from immediate parent on up; the elements are returned in order from the closest parent to the outer ones. When multip

:checkbox selector

Selects all elements of type checkbox. $( ":checkbox" ) is equivalent to $( "[type=checkbox]" ). As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ("*") is implied. In other words, the bare $(':checkbox') is equivalent to $( "*:checkbox" ), so $( "input:checkbox" ) should be used instead. Because :checkbox is a jQuery extension

event.timeStamp

The difference in milliseconds between the time the browser created the event and January 1, 1970. This property can be useful for profiling event performance by getting the event.timeStamp value at two points in the code and noting the difference. To simply determine the current time inside an event handler, use (new Date).getTime() instead. Note: Due to a bug open since 2004, this value is not populated correctly in Firefox and it is not possible to

jQuery.fn.extend()

Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods. The jQuery.fn.extend() method extends the jQuery prototype ($.fn) object to provide new methods that can be chained to the jQuery() function. jQuery.fn.extend( object ) version added: 1.0 object

jQuery.mobile.silentScroll()

Scroll to a particular Y position without triggering scroll event listeners. Scroll to a particular Y position without triggering scroll event listeners. jQuery.mobile.silentScroll( yPos ) yPos Number

Attribute starts with selector [name^=”value”]

Selects elements that have the specified attribute with a value beginning exactly with a given string. This selector can be useful for identifying elements in pages produced by server-side frameworks that produce HTML with systematic element IDs. However it will be slower than using a class selector so leverage classes, if you can, to group like elements. jQuery( "[attribute^='value']" ) v

.blur()

Bind an event handler to the "blur" JavaScript event, or trigger that event on an element. This method is a shortcut for .on( "blur", handler ) in the first two variations, and .trigger( "blur" ) in the third. The blur event is sent to an element when it loses focus. Originally, this event was only applicable to form elements, such as <input>. In recent browsers, the domain of the event has been extended to include all element types. An element