Some APIs may have changed since these versions were released. If using either version, find out about our version support<.
All the aspects of the API that were added, or had a new signature added, in the corresponding version of jQuery.
Changes in jQuery 1.12 and 2.2 include performance improvements of the selector engine, manipulation of class names for SVG elements, support for the Symbol type and iterators added in ES2015, and a new hook has been added for filtering HTML.
For more information, see the Release Notes/Changelog<.
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.
Add or remove one or more classes from each element in the set of matched elements, depending on either the class’s presence or the value of the state argument.