YouTip LogoYouTip

Jquery Ref Misc

* * * ## jQuery Miscellaneous Methods | Method | Description | | --- | --- | | [data()](#) | Attach data to, or retrieve data from, selected elements | | [each()](#) | Execute a function for each matched element | | [get()](#) | Get the DOM elements matched by the selector | | [index()](#) | Search for a given element from among the matched elements | | [$.noConflict()](#) | Relinquish jQuery's control of the $ variable | | [$.param()](#) | Create a serialized representation of an array or object (suitable for use in a URL query string when making an AJAX request) | | [removeData()](#) | Remove a previously stored piece of 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 whether the browser is currently using the W3C CSS Box Model for the current document | | [$.browser](#) | Deprecated in version 1.9. Contains information about the user agent currently in use | | [$.contains()](#) | Check to see if a DOM element is a descendant of another DOM element | | [$.each()](#) | Iterate over an object or array | | [$.extend()](#) | Merge the contents of two or more objects together into the first object | | [$.fn.extend()](#) | Merge the contents of one or more objects onto the jQuery prototype to provide new jQuery instance methods | | [$.globalEval()](#) | Execute some JavaScript code globally | | [$.grep()](#) | Filter the array with a function and return only the items that passed | | [$.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 to see 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()](#) | Check to see if a DOM node is within an XML document (or is an XML document) | | [$.makeArray()](#) | Convert an array-like object into a real JavaScript array | | [$.map()](#) | Pass each element in the current matched set through a function, producing a new jQuery object containing the return values | | [$.merge()](#) | Merge the contents of two arrays together into the first array | | [$.noop()](#) | An empty function | | [$.now()](#) | Return a number representing the current time | | [$.parseHTML()](#) | Parse a string into an array of DOM nodes | | [$.parseJSON()](#) | Takes a well-formed JSON string and returns the resulting JavaScript object | | [$.parseXML()](#) | Parses a string into an XML document | | [$.trim()](#) | Remove whitespace from the beginning and end of a string | | [$.type()](#) | Determine the internal JavaScript [] of an object | | [$.unique()](#) | Deprecated in jQuery 3.0. Sorts an array of DOM elements, in place, with duplicate elements removed | | [$.uniqueSort()](#) | Sorts an array of DOM elements, in place, with duplicate elements removed | | [$.data()](#) | Store arbitrary data associated with the specified element and/or return the value that was set | | [$.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 passed to an animation method | | [$.htmlPrefilter()](#) | Modify and filter HTML strings passed through jQuery manipulation methods | | [$.readyException()](#) | Handle errors thrown synchronously from functions wrapped in jQuery() | * * * ## jQuery Callback Object The jQuery.Callbacks() function, introduced in jQuery 1.7, returns a multi-purpose object that provides a powerful way to manage callback lists. It allows adding, removing, firing, and disabling callbacks. | Method | Description | | --- | --- | | [$.Callbacks()](#) | A multi-purpose callbacks list object that provides a powerful way to manage callback lists | | [callbacks.add()](#) | Add a callback or a collection of callbacks to a callback list | | [callbacks.disable()](#) | Disable a callback list from doing anything more | | [callbacks.disabled()](#) | Determine if the callbacks list has been disabled | | [callbacks.empty()](#) | Remove all of the callbacks from a list | | [callbacks.fire()](#) | Call all of the callbacks in a list with the given arguments | | [callbacks.fired()](#) | Determine if the callbacks have been called at least once | | [callbacks.firewith()](#) | Access the list of callbacks with a given context and arguments | | [callbacks.has()](#) | Determine whether a callback list contains a specific callback | | [callbacks.lock()](#) | Lock a callback list in its current state | | [callbacks.locked()](#) | Determine if a callback list is locked | | [callbacks.remove()](#) | Remove a callback or a collection of callbacks from a callback list | * * * ## 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 lists, invoke callback lists, and relay the success or failure state of any synchronous or asynchronous function. Deferred objects are chainable, similar to the way jQuery objects are chainable, but they have their own methods. After creating a Deferred object, you can use any of the methods below by directly chaining to the object created or saved by calling one or more methods. | Method | Description | | --- | --- | | [$.Deferred()](#) | A chainable utility object that provides methods to register multiple callbacks into callback lists | | [deferred.always()](#) | Add handlers to be called when the Deferred object is either resolved or rejected | | [deferred.done()](#) | Add handlers to be called when the Deferred object is resolved | | [deferred.fail()](#) | Add handlers to be called when the Deferred object is rejected | | [deferred.isRejected()](#) | Deprecated since jQuery 1.7. Determine whether a Deferred object has been rejected | | [deferred.isResolved()](#) | Deprecated since jQuery 1.7. Determine whether a Deferred object has been resolved | | [deferred.notify()](#) | Call the progressCallbacks on a Deferred object with the given args | | [deferred.notifyWith()](#) | Call the progressCallbacks on a Deferred object with the given context and args | | [deferred.pipe()](#) | Utility method to filter and/or chain Deferreds | | [deferred.progress()](#) | Add handlers to be called when the Deferred object generates progress updates | | [deferred.promise()](#) | Return a Promise object to observe when all actions of a certain type bound to the collection, whether queued or not, have finished | | [deferred.reject()](#) | Reject a Deferred object and call any failCallbacks with the given args | | [deferred.rejectWith()](#) | Reject a Deferred object and call any failCallbacks with the given context and args | | [deferred.resolve()](#) | Resolve a Deferred object and call any doneCallbacks with the given args | | [deferred.resolveWith()](#) | Resolve a Deferred object and call any doneCallbacks with the given context and args | | [deferred.state()](#) | Determine the current state of a Deferred object | | [deferred.then()](#) | Add handlers to be called when the Deferred object is resolved, rejected, or still in progress | | [.promise()](#) | Return a Promise object to observe when all actions of a certain type bound to the collection, whether queued or not, have finished |
← Jquery Ref PropJquery Css β†’