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

Next siblings selector (“prev ~ siblings”)

Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector. The notable difference between (prev + next) and (prev ~ siblings) is their respective reach. While the former reaches only to the immediately following sibling element, the latter extends that reach to all following sibling elements. jQuery( "prev ~ siblings" )

.prevAll()

Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector. Given a jQuery object that represents a set of DOM elements, the .prevAll() method searches through the predecessors of these elements in the DOM tree and construct a new jQuery object from the matching elements; the elements are returned in order beginning with the closest sibling. The method optionally accepts a selector expression of the sa

jQuery.isNumeric()

Determines whether its argument is a number. The $.isNumeric() method checks whether its argument represents a numeric value. If so, it returns true. Otherwise it returns false. The argument can be of any type. jQuery.isNumeric( value ) version added: 1.7 value Anything

:only-child selector

Selects all elements that are the only child of their parent. If the parent has other child elements, nothing is matched. jQuery( ":only-child" ) version added: 1.1.4 Examples: Change the text and add a border for each button that is the only child of its parent. <!do

:last-of-type selector

Selects all elements that are the last among siblings of the same element name. The :last-of-type selector matches elements that have no other element with the same parent and the same element name coming after it in the document tree. jQuery( ":last-of-type" ) version added: 1.9 Examples: F

: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

:header selector

Selects all elements that are headers, like h1, h2, h3 and so on. Because :header is a jQuery extension and not part of the CSS specification, queries using :header cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. To achieve the best performance when using :header to select elements, first select the elements using a pure CSS selector, then use .filter(":header"). jQuery( ":header"

pagechangefailed event

Triggered when the changePage() request fails to load the page. Note: The triggering of this event is deprecated as of jQuery Mobile 1.4.0. It will no longer be triggered in 1.6.0. The replacement for pagechangefailed is the pagecontainer widget's pagecontainerchangefailed event. In jQuery Mobile 1.4.0, the two events are identical except for their name and the fact that pagecontainerchangefailed is triggered on the pagecontainer, whereas page

Easings

Easings Easing functions specify the speed at which an animation progresses at different points within the animation. jQuery core ships with two easings: linear, which progresses at a constant pace throughout the animation, and swing (jQuery core's default easing), which progresses slightly slower at the beginning and end of the animation than it does in the middle of the animation. jQuery UI provides several additional easing functions, ranging from variations on the swing behavior to customi