jQuery Utility Functions

Learn how to use jQuery Utility Functions.

jQuery Utility Functions

jQuery Utility Functions


In this section we are discussing about jQuery Utility Functions. Understanding these functions are important as you will have to use these funtions very frequently while writing your jQuery application.

Here is the list of jQuery Utility Functions:

This function is used to remove all the functions from the queue that have not been executed.

The jQuery.contains() function is used to check if a DOM node is within another DOM node.

The jQuery.data() function is used to add data of any type to a DOM element..

The .dequeue() function is used to remove the next function on the queue.

The jQuery.dequeue() is used to execute the next function on the queue for the matched element.

The jQuery.each() function is not same as  .each(), which is used to iterate over the jQuery objects. The  jQuery.each() iterates through the array displaying each number as both a word and numeral.

The jQuery.extend() function merge the contents of two or more objects together into the first object.

Execute some JavaScript code globally.
The jQuery.grep() function is used to find the elements of an array which satisfy a filter function. The original array is not affected.

The jQuery.inArray() function searches for a specified value within an array and return its index (or -1 if not found).

The jQuery.isArray() function is used to determine whether the argument is an array.

The jQuery.isEmptyObject() function is used to check to see if an object is empty (in order words contains no properties).

The jQuery.isFunction() is used to determine if the argument passed is a Javascript function object.

The function jQuery.isPlainObject() is used to find if an object is a plain object (created using "{}" or "new Object").

The jQuery.isXMLDoc() function is used to find if a DOM node is within an XML document (or is an XML document).

The function jQuery.makeArray() is used to convert an array-like object into a true JavaScript array.

The function jQuery.map() translates all items in an array or array-like object to another array of items.

The function jQuery.merge() merge the contents of two arrays together into the first array.

The jQuery.noop() is an empty function.

The jQuery.parseJSON function takes a well-formed JSON string as parameter and then returns the resulting JavaScript object.

The jQuery.proxy() function Takes a function and returns a new one that will always have a particular context.

It shows the queue of functions to be executed on the matched elements.

It shows the queue of functions to be executed on the matched element.

This function is used to remove a previously-stored piece of data.

Properties of the Global jQuery Object.

It is used to remove the whitespace from the beginning and end of a string.

The jQuery.unique() function sorts an array of DOM elements, in place, with the duplicates removed.

In this we have studied how to use jQuery functions. 0

Learn from experts! Attend jQuery Training classes.