Easy Tutorial
❮ Event Mouseenter Misc Deferred Progress ❯

jQuery Miscellaneous Methods


jQuery Miscellaneous Methods

Method Description
data() Attach data to, or get data from, selected elements
each() Execute a function for each matched element
get() Retrieve the DOM elements matched by the selector
index() Search for a given element from among the matched elements
$.noConflict() Release control of the $ variable
$.param() Create a serialized representation of an array or object (usable in URL query string for AJAX requests)
removeData() Remove previously stored data
size() Deprecated in version 1.8. Return the number of DOM elements matched by the jQuery selector
toArray() Retrieve all the DOM elements contained in the jQuery set, as an array
pushStack() Add a collection of DOM elements onto the jQuery stack
$.when() Provide a way to execute callback functions based on one or more objects

jQuery Utilities

Method Description
$.boxModel Deprecated in version 1.8. Detect if the browser is using the W3C CSS Box Model to render the current page
$.browser Deprecated in version 1.9. Return information about the browser currently being used
$.contains() Determine whether one DOM element is a descendant of another specified DOM element
$.each() Iterate over specified objects and arrays
$.extend() Merge the contents of one or more objects into the target object
$.fn.extend() Add one or more properties and methods to the jQuery prototype to create custom plugin
$.globalEval() Execute a JavaScript code snippet globally
$.grep() Filter and return an array of elements that satisfy the specified function
$.inArray() Search for a specified value within an array and return its index (or -1 if not found)
$.isArray() Determine whether the argument is an array
$.isEmptyObject() Check if an object is empty (contains no enumerable properties)
$.isFunction() Determine whether the argument is a function
$.isNumeric() Determine whether the argument is a numeric value
$.isPlainObject() Determine whether the argument is a plain object
$.isWindow() Determine whether the argument is a window
$.isXMLDoc() Determine whether a DOM node is within an XML document, or whether it is an XML document
$.makeArray() Convert an array-like object into a true array
$.map() Apply a function to each item in an array or object and return a new array with the results
$.merge() Merge the contents of two arrays into the first array
$.noop() An empty function
$.now() Return the current time
$.parseHTML() Parse a string into an array of DOM nodes
$.parseJSON() Convert a JSON string into a JavaScript object
$.parseXML() Parse a string into an XML document
$.trim() Remove whitespace from the beginning and end of a string
$.type() Determine the internal JavaScript [[Class]] of an object
$.unique() Deprecated in jQuery 3.0. Sorts an array of DOM elements, removing duplicates
$.uniqueSort() Sorts an array of DOM elements, removing duplicates
$.data() Store or return data on the specified element
$.hasData() Determine whether an element has any jQuery data associated with it
$.sub() Create a new copy of jQuery whose properties and methods can be modified without affecting the original jQuery object
$.speed Create an object containing a set of properties to define custom animations
$.htmlPrefilter() Modify and filter HTML strings passed through jQuery manipulation methods
$.readyException() Handle errors thrown synchronously in functions wrapped in jQuery()

jQuery Callback Object

Introduced in jQuery 1.7, the jQuery.Callbacks() function returns a multi-purpose object that provides a powerful way to manage callback lists. It can add, remove, trigger, and disable callback functions.

| Method | Description | | --- | --- |


jQuery Deferred Object

Introduced in jQuery 1.5, the Deferred object is a chainable utility object created by calling the jQuery.Deferred() method. It can register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.

| Method | Description | | --- | --- |

❮ Event Mouseenter Misc Deferred Progress ❯