jQuery.type()

Determine the internal JavaScript [[Class]] of an object. A number of techniques are used to determine the exact return value for an object. The [[Class]] is determined as follows: If the object is undefined or null, then "undefined" or "null" is returned accordingly. jQuery.type( undefined ) === "undefined" jQuery.type() === "undefined" jQuery.type( window.notDefined ) === "undefined" jQuery.type( null ) === "null" If the argument is either a primit

:last selector

Selects the last matched element. Note that :last selects a single element by filtering the current jQuery collection and matching the last element within it. Because :last is a jQuery extension and not part of the CSS specification, queries using :last cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using :last to select elements, first select the elements usin

jQuery.trim()

Remove the whitespace from the beginning and end of a string. The $.trim() function removes all newlines, spaces (including non-breaking spaces), and tabs from the beginning and end of the supplied string. If these whitespace characters occur in the middle of the string, they are preserved. jQuery.trim( str ) version added: 1.0

jQuery.isWindow()

Determine whether the argument is a window. This is used in a number of places in jQuery to determine if we're operating against a browser window (such as the current window or an iframe). jQuery.isWindow( obj ) version added: 1.4.3 obj PlainObject Obj

vmouseout event

Virtualized mouseout event handler. We provide a set of "virtual" mouse events that attempt to abstract away mouse and touch events. This allows the developer to register listeners for the basic mouse events, such as mousedown, mousemove, mouseup, and click, and the plugin will take care of registering the correct listeners behind the scenes to invoke the listener at the fastest possible time for that device. In touch environments, the plugin r

:gt() selector

Select all elements at an index greater than index within the matched set. index-related selectors The index-related selector expressions (including this "greater than" selector) filter the set of elements that have matched the expressions that precede them. They narrow the set down based on the order of the elements within this matched set. For example, if elements are first selected with a class selector (.myclass) and four elements are returned,

pagecreate event

Triggered when the page has been created in the DOM (via ajax or other) and after all widgets have had an opportunity to enhance the contained markup. Note:This event is part of the page widget as of jQuery Mobile 1.4.0. Please consult the documentation for the page widget's implementation. jQuery( ".selector" ).on( "pagecreate", function( event ) { ... } )

Accordion

Convert a pair of headers and content panels into an accordion. The markup of your accordion container needs pairs of headers and content panels: <div id="accordion"> <h3>First header</h3> <div>First content panel</div> <h3>Second header</h3> <div>Second content panel</div> </div> Accordions support arbitrary markup, but each content panel must always be the next sibling after its ass

:parent selector

Select all elements that have at least one child node (either an element or text). This is the inverse of :empty. One important thing to note regarding the use of :parent (and :empty) is that child nodes include text nodes. The W3C recommends that the <p> element have at least one child node, even if that child is merely text (see http://www.w3.org/TR/html401/struct/text.html#edef-P). Some other elements, on the other hand, are empty (i.e. have

jQuery.hasData()

Determine whether an element has any jQuery data associated with it. The jQuery.hasData() method provides a way to determine if an element currently has any values that were set using jQuery.data(). If no data is associated with an element (there is no data object at all or the data object is empty), the method returns false; otherwise it returns true. The primary advantage of jQuery.hasData(element) is that it does not create and associate a data obj