.has()

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. Given a jQuery object that represents a set of DOM elements, the .has() method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against the descendants of the matching elements; the element will be included in the result if any of its descendant elements matches the selector. Consider a page

event.pageX

The mouse position relative to the left edge of the document. event.pageX 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="ut

:text selector

Selects all input elements of type text. $( ":text" ) allows us to select all <input type="text"> elements. 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 $( ":text" ) is equivalent to $( "*:text" ), so $( "input:text" ) should be used instead. Note: As of jQuery 1.5.2, :text

jQuery.ui.keyCode

A mapping of key code descriptions to their numeric values. jQuery.ui.keyCode BACKSPACE Integer COMMA Integer DELETE

event.result

The last value returned by an event handler that was triggered by this event, unless the value was undefined. This property can be useful for getting previous return values of custom events. event.result version added: 1.3 Examples: Display previous handler's return value

.focus()

Asynchronously set focus to an element. This plugin extends jQuery's built-in .focus() method. If jQuery UI is not loaded, calling the .focus() method may not fail directly, as the method still exists. However, the expected behavior will not occur. This method is deprecated. Use .focus() without arguments inside a timeout or $.Widget's ._delay() method. .focus( delay [, callback ] ) versi

.unload()

Bind an event handler to the "unload" JavaScript event. This method is a shortcut for .on( "unload", handler ). The unload event is sent to the window element when the user navigates away from the page. This could mean one of many things. The user could have clicked on a link to leave the page, or typed in a new URL in the address bar. The forward and back buttons will trigger the event. Closing the browser window will cause the event to be triggered.

.prependTo()

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

jQuery.unique()

Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers. The $.unique() function searches through an array of objects, sorting the array, and removing any duplicate nodes. A node is considered a duplicate if it is the exact same node as one already in the array; two different nodes with identical attributes are not considered to be duplicates. This function only

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