Ajax Events

Ajax requests produce a number of different events that you can subscribe to. Here’s a full list of the events and in what order they are triggered. There are two types of events: Local Events These are callbacks that you can subscribe to within the Ajax request object, like so: 1 2 3 4 5 … Continue reading

callbacks.has()

Determine whether or not the list has any callbacks attached. If a callback is provided as an argument, determine whether it is in a list.

.closest()

For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.

.css()

Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.

.data()

Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.

event.data

An optional object of data passed to an event method when the current executing handler is bound.

event.result

The last value returned by an event handler that was triggered by this event, unless the value was undefined.

.filter()

Reduce the set of matched elements to those that match the selector or pass the function’s test.

.find()

Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

.finish()

Stop the currently-running animation, remove all queued animations, and complete all animations for the matched elements.

.has()

Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element.

.is()

Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.

jQuery()

Return a collection of matched elements either found in the DOM based on passed argument(s) or created by passing an HTML string.

jQuery.cssHooks

Hook directly into jQuery to override how particular CSS properties are retrieved or set, normalize CSS property naming, or create custom properties.

jQuery.data()

Store arbitrary data associated with the specified element and/or return the value that was set.

jQuery.Deferred()

A factory function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.

jQuery.each()

A generic iterator function, which can be used to seamlessly iterate over both objects and arrays. Arrays and array-like objects with a length property (such as a function’s arguments object) are iterated by numeric index, from 0 to length-1. Other objects are iterated via their named properties.

jQuery.fn.extend()

Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.

jQuery.grep()

Finds the elements of an array which satisfy a filter function. The original array is not affected.

jQuery.hasData()

Determine whether an element has any jQuery data associated with it.

jQuery.inArray()

Search for a specified value within an array and return its index (or -1 if not found).

jQuery.speed

Creates an object containing a set of properties ready to be used in the definition of custom animations.

jQuery.uniqueSort()

Sorts an array or an array-like object of DOM elements, in place, with the duplicates removed. Note that this only works on arrays/array-likes of DOM elements, not strings or numbers.

jQuery.when()

Provides a way to execute callback functions based on zero or more Thenable objects, usually Deferred objects that represent asynchronous events.

.map()

Pass each element in the current matched set through a function, producing a new jQuery object containing the return values.

.next()

Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

.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.

.parentsUntil()

Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.

.prev()

Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.

.prevAll()

Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector, in the reverse document order.

.prevUntil()

Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.

.promise()

Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.

.scrollLeft()

Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element.

.scrollTop()

Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.

.text()

Get the combined text contents of each element in the set of matched elements, including their descendants, or set the text contents of the matched elements.

Types

This page documents data types appearing in jQuery function signatures, whether defined by JavaScript itself or further restricted by jQuery. Unless explicitly stated otherwise, jQuery functions require primitive values where applicable, and do not accept their Object-wrapped forms. If you want to study these concepts in depth, take a look at MDN. You should be … Continue reading

.uniqueSort()

Sorts a jQuery object of DOM elements, in place, with the duplicates removed. Note that this only works on jQuery objects consisting of DOM elements, not strings or numbers.