Ajax events

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: $.ajax({ beforeSend: function(){ // Handle the beforeSend event }, complete: function(){ // Handle the complete event } // ...... }); Global Events These events are triggered on t

:disabled selector

Selects all elements that are disabled. 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 $(':disabled') is equivalent to $('*:disabled'), so $('input:disabled') or similar should be used instead. Although their resulting selections are usually the same, the :disabled selector is subtly

callbacks.disable()

Disable a callback list from doing anything more. This method returns the Callbacks object onto which it is attached (this). callbacks.disable() version added: 1.7 This method does not accept any arguments.

.empty()

Remove all child nodes of the set of matched elements from the DOM. This method removes not only child (and other descendant) elements, but also any text within the set of matched elements. This is because, according to the DOM specification, any string of text within an element is considered a child node of that element. Consider the following HTML: <div class="container"> <div class="hello">Hello</div> <div class="goodbye"&g

:lang() selector

Selects all elements of the specified language. The :lang() selector matches elements that have a language value equal to the supplied language code or that start with the supplied language code immediately followed by "-". For example, the selector $("div:lang(en)")will match <div lang="en"> and <div lang="en-us"> (and any of their descendant <div>s), but not <div lang="fr"> For HTML elements, the language value is determined

event.isPropagationStopped()

Returns whether event.stopPropagation() was ever called on this event object. This event method is described in the W3C DOM Level 3 specification. event.isPropagationStopped() version added: 1.3 This method does not accept any arguments.

jQuery.removeData()

Remove a previously-stored piece of data. Note: This is a low-level method, you should probably use .removeData() instead. The jQuery.removeData() method allows us to remove values that were previously set using jQuery.data(). When called with the name of a key, jQuery.removeData() deletes that particular value; when called with no arguments, all values are removed. jQuery.removeData( element [, name ] )

Descendant selector (“ancestor descendant”)

Selects all elements that are descendants of a given ancestor. A descendant of an element could be a child, grandchild, great-grandchild, and so on, of that element. jQuery( "ancestor descendant" ) version added: 1.0 Examples: Mark all inputs that are descendants of a form with a dotted blue

.effect()

Apply an animation effect to an element. The .effect() method applies a named animation effect to an element. Many effects also support a show or hide mode, which can be accomplished with the .show(), .hide(), and .toggle() methods. .effect( effect [, options ] [, duration ] [, complete ] ) effect String

:empty selector

Select all elements that have no children (including text nodes). This is the inverse of :parent. One important thing to note with :empty (and :parent) is that child elements 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 no children) by definition: