:target selector

Selects the target element indicated by the fragment identifier of the document's URI. If the document's URI contains a fragment identifier, or hash, then the :target selector will match the element with an ID that matches the identifier. For example, given a document with a URI of http://example.com/#foo, $( "p:target" ) will select the <p id="foo"> element. Further discussion of this usage can be found in the W3C CSS specification.

jQuery.boxModel

States if the current page, in the user's browser, is being rendered using the W3C CSS Box Model. This property was removed in jQuery 1.8. Please try to use feature detection instead. jQuery.boxModel version added: 1.0

Shake effect

Shakes the element multiple times, vertically or horizontally. shake direction (default: "left") String A value of "left" or "right" will shake the element horizontally, and a value of "up" or "down" will shake the element vertically. The value specifies which direction the element should move

Data Attributes

Data Attributes Data attribute reference The jQuery Mobile framework uses HTML5 data- attributes to allow for markup-based initialization and configuration of widgets. These attributes are completely optional; calling plugins manually and passing options directly is also supported. To avoid naming conflicts with other plugins or frameworks that also use data- attributes, set a custom namespace by modifying the ns global option. Button Links with data-role="button". Input-based buttons, links i

.nextUntil()

Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. Given a selector expression that represents a set of DOM elements, the .nextUntil() method searches through the successors of these elements in the DOM tree, stopping when it reaches an element matched by the method's argument. The new jQuery object that is returned contains all following siblings up to but not inc

:has() selector

Selects elements which contain at least one element that matches the specified selector. The expression $( "div:has(p)" ) matches a <div> if a <p> exists anywhere among its descendants, not just as a direct child. Because :has() is a jQuery extension and not part of the CSS specification, queries using :has() cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. For better performance in mode

.removeAttr()

Remove an attribute from each element in the set of matched elements. The .removeAttr() method uses the JavaScript removeAttribute() function, but it has the advantage of being able to be called directly on a jQuery object and it accounts for different attribute naming across browsers. Note: Removing an inline onclick event handler using .removeAttr() doesn't achieve the desired effect in Internet Explorer 6, 7, or 8. To avoid potential problems, use

event.pageY

The mouse position relative to the top edge of the document. event.pageY version added: 1.0.4 Examples: Show the mouse position relative to the left and top edges of the document (within this iframe). <!doctype html> <html lang="en"> <head> <meta charset="utf

event.stopPropagation()

Prevents the event from bubbling up the DOM tree, preventing any parent handlers from being notified of the event. We can use event.isPropagationStopped() to determine if this method was ever called (on that event object). This method works for custom events triggered with trigger() as well. Note that this will not prevent other handlers on the same element from running. Since the .live() method handles events once they have propagated to the top o

jQuery.noop()

An empty function. You can use this empty function when you wish to pass around a function that will do nothing. This is useful for plugin authors who offer optional callbacks; in the case that no callback is given, something like jQuery.noop could execute. jQuery.noop() version added: 1.4 This method does not accept any ar