The add() method adds elements to an existing group of elements.
The add() method adds elements to an existing group of elements.
Required. Specifies a selector expression, a jQuery object, one or more elements or an HTML snippet to be added to an existing group of elements
Optional. Specifies the point in the document at which the selector expression should begin matching
self reference
Create a new jQuery object with elements added to the set of matched elements.
Create a new jQuery object with elements added to the set of matched elements.
could be any of the following:
Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
Add the previous set of elements on the stack to the current set, optionally filtered by a selector.
A string containing a selector expression to match the current set of elements against.
self reference
Adds one or more classes to the selected elements
Adds one or more classes to the selected elements
One or more space-separated classes to be added to the class attribute of each matched element.
Inserts content after the selected elements
Inserts content after the selected elements
the specified content
The jQuery animate() method is used to create custom animations.
The jQuery animate() method is used to create custom animations.
the given animation options / parameters
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
Inserts content at the end of the selected elements
Inserts content at the end of the selected elements
the specified content
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
Insert content, specified by the parameter, to the end of each element in the set of matched elements.
the given HTML content
Insert every element in the set of matched elements to the end of the target.
Insert every element in the set of matched elements to the end of the target.
A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.
Retrieves the element at the given index
Retrieves the element at the given index
the given index
the element or null if not found
The jQuery attr() method is also used to set/change attribute values.
The jQuery attr() method is also used to set/change attribute values.
the name of the attribute to set
The jQuery attr() method is also used to set/change attribute values.
The jQuery attr() method is also used to set/change attribute values.
the name of the attribute to set
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
Get the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.
the given attribute name
The jQuery attr() method is used to get attribute values.
The jQuery attr() method is used to get attribute values.
the name of the attribute to get
the attribute values.
Inserts content before the selected elements
Inserts content before the selected elements
the specified content
Attach a handler to an event for the elements.
Attach a handler to an event for the elements.
An object containing one or more DOM event types and functions to execute for them.
Attach a handler to an event for the elements.
Attach a handler to an event for the elements.
A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.
Attach a handler to an event for the elements.
Attach a handler to an event for the elements.
A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
An object containing data that will be passed to the event handler.
Attach a handler to an event for the elements.
Attach a handler to an event for the elements.
A string containing one or more DOM event types, such as "click" or "submit," or custom event names.
An object containing data that will be passed to the event handler.
Setting the third argument to false will attach a function that prevents the default action from occurring and stops the event from bubbling. The default is true.
The bind() method attaches one or more event handlers for selected elements, and specifies a function to run when the event occurs.
The bind() method attaches one or more event handlers for selected elements, and specifies a function to run when the event occurs.
Required. Specifies one or more events to attach to the elements. Multiple event values are separated by space. Must be a valid event.
Optional. Specifies additional data to pass along to the function
Required. Specifies the function to run when the event occurs
Specifies an event map ({event:function, event:function, ...}) containing one or more events to attach to the elements, and functions to run when the event occurs
Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
An object containing data that will be passed to the event handler.
A function to execute each time the event is triggered.
Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
Bind an event handler to the "blur" JavaScript event, or trigger that event on an element.
A function to execute each time the event is triggered.
Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
Bind an event handler to the "change" JavaScript event, or trigger that event on an element.
A function to execute each time the event is triggered.
TODO
Get the children of each element in the set of matched elements, optionally filtered by a selector.
Get the children of each element in the set of matched elements, optionally filtered by a selector.
A string containing a selector expression to match elements against.
self reference
Remove from the queue all items that have not yet been run.
Remove from the queue all items that have not yet been run.
A string containing the name of the queue. Defaults to fx, the standard effects queue.
The click event occurs when an element is clicked.
The click event occurs when an element is clicked. The click() method triggers the click event, or attaches a function to run when a click event occurs.
the callback/handler function
Create a deep copy of the set of matched elements.
Create a deep copy of the set of matched elements.
A Boolean indicating whether event handlers should be copied along with the elements. As of jQuery 1.4, element data will be copied as well.
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
An element to match elements against.
self reference
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
A string containing a selector expression to match elements against
An element to match elements against.
self reference
Get the children of each element in the set of matched elements, including text and comment nodes.
Sets or returns the style attribute
Sets or returns the style attribute
A CSS property name.
A value to set for the property.
Get the computed style properties for the first element in the set of matched elements.
Get the computed style properties for the first element in the set of matched elements.
An array of one or more CSS properties.
Get the computed style properties for the first element in the set of matched elements.
Get the computed style properties for the first element in the set of matched elements.
A CSS property name.
the style property value
Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.
Get the value of a computed style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.
the CSS style
Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements
Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements
An object of key-value pairs of data to update.
Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.
Store arbitrary data associated with the matched elements or return the value at the named data store for the first element in the set of matched elements.
A string naming the piece of data to set.
The new data value; this can be any Javascript type except undefined.
Execute the next function on the queue for the matched elements.
Execute the next function on the queue for the matched elements.
A string containing the name of the queue. Defaults to fx, the standard effects queue.
Remove the set of matched elements from the DOM (AngularJS 1.4).
Remove the set of matched elements from the DOM (AngularJS 1.4).
A selector expression that filters the set of matched elements to be removed.
A plain object of one or more event types, such as click or keydown and their corresponding functions that are no longer to be executed.
Remove event handlers previously attached using .live() from the elements.
Remove event handlers previously attached using .live() from the elements.
A string containing a JavaScript event type, such as click or keydown.
The function that is no longer to be executed.
Remove event handlers previously attached using .live() from the elements.
Removes the child elements from the selected element
Reduce the set of matched elements to the one at the specified index (AngularJS 1.4).
Reduce the set of matched elements to the one at the specified index (AngularJS 1.4).
An integer indicating the position of the element, counting backwards from the last element in the set.
The jQuery fadeIn() method is used to fade in a hidden element.
The jQuery fadeIn() method is used to fade in a hidden element.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
The jQuery fadeOut() method is used to fade out a visible element.
The jQuery fadeOut() method is used to fade out a visible element.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
The jQuery fadeToggle() method toggles between the fadeIn() and fadeOut() methods.
The jQuery fadeToggle() method toggles between the fadeIn() and fadeOut() methods.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
An element or a jQuery object to match elements against.
self reference
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.
A string containing a selector expression to match elements against.
self reference
Determine whether any of the matched elements are assigned the given class.
Determine whether any of the matched elements are assigned the given class.
The class name to search for.
true, if any of the matched elements are assigned the given class.
Sets the height of an element (excludes padding, border and margin).
Sets the height of an element (excludes padding, border and margin).
the given string, numeric or function value
Get the current computed height for the first element in the set of matched elements or set the height of every matched element.
Get the current computed height for the first element in the set of matched elements or set the height of every matched element.
the height of an element
Shows an invisible HTML element
Shows an invisible HTML element
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
Sets or returns the content of selected elements (including HTML markup)
Sets or returns the content of selected elements (including HTML markup)
the element or value
Sets or returns the content of selected elements (including HTML markup)
Sets or returns the content of selected elements (including HTML markup)
the element
Set the CSS inner height of each element in the set of matched elements.
Set the CSS inner height of each element in the set of matched elements.
the given string, numeric or function value
Get the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element.
Get the current computed inner height (including padding but not border) for the first element in the set of matched elements or set the inner height of every matched element.
the computed inner height
Set the CSS inner width of each element in the set of matched elements.
Set the CSS inner width of each element in the set of matched elements.
the given string, numeric or function value
Get the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element.
Get the current computed inner width (including padding but not border) for the first element in the set of matched elements or set the inner width of every matched element.
the computed inner width
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
A function used as a test for every element in the set. It accepts two arguments, index, which is the element's index in the jQuery collection, and element, which is the DOM element. Within the function, this refers to the current DOM element.
true if at least one of these elements matches the given arguments.
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments.
A string containing a selector expression to match elements against.
true if at least one of these elements matches the given arguments.
Get the immediately following sibling of each element in the set of matched elements.
Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.
A string containing a selector expression to match elements against.
self reference
Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.
A string containing a selector expression to match elements against.
self reference
Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed.
A string containing a selector expression to indicate where to stop matching following sibling elements.
A string containing a selector expression to match elements against.
self reference
Remove an event handler.
Remove an event handler.
One or more space-separated event types and optional namespaces, or just namespaces, such as "click", "keydown.myPlugin", or ".myPlugin".
A selector which should match the one originally passed to .on() when attaching event handlers.
A handler function previously attached for the event(s), or the special value false.
Set the current coordinates of every element in the set of matched elements, relative to the document.
Set the current coordinates of every element in the set of matched elements, relative to the document.
An object containing the properties top and left, which are numbers indicating the new top and left coordinates for the elements.
Get the current coordinates of the first element in the set of matched elements, relative to the document.
Get the current coordinates of the first element in the set of matched elements, relative to the document.
the current coordinates of the first element in the set of matched elements
Get the closest ancestor element that is positioned.
Get the closest ancestor element that is positioned.
self reference
Attach an event handler function for one or more events to the selected elements.
Attach an event handler function for one or more events to the selected elements.
One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
A selector string to filter the descendants of the selected elements that trigger the event. If the selector is null or omitted, the event is always triggered when it reaches the selected element.
Data to be passed to the handler in event.data when an event is triggered.
A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false.
Attach a handler to an event for the elements.
Attach a handler to an event for the elements. The handler is executed at most once per element per event type.
One or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
Data to be passed to the handler in event.data when an event is triggered.
A function to execute at the time the event is triggered.
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
Get the parent of each element in the current set of matched elements, optionally filtered by a selector.
A string containing a selector expression to match elements against.
self reference
Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
Get the ancestors of each element in the current set of matched elements, optionally filtered by a selector.
A string containing a selector expression to match elements against.
self reference
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object.
A string containing a selector expression to match elements against.
self reference
Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
Get the current coordinates of the first element in the set of matched elements, relative to the offset parent.
the current coordinates of the first element in the set of matched elements
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
A function that returns an HTML string, DOM element(s), or jQuery object to insert at the beginning of each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set.
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.
One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.
Get the immediately preceding sibling of each element in the set of matched elements.
Get the immediately preceding sibling of each element in the set of matched elements. If a selector is provided, it retrieves the previous sibling only if it matches that selector.
A string containing a selector expression to match elements against.
self reference
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector.
A string containing a selector expression to match elements against.
self reference
Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object.
self reference
Set one or more properties for the set of matched elements.
Set one or more properties for the set of matched elements.
The name of the property to set.
A value to set for the property.
Set one or more properties for the set of matched elements.
Set one or more properties for the set of matched elements.
The name of the property to set.
A function returning the value to set. Receives the index position of the element in the set and the old property value as arguments. Within the function, the keyword this refers to the current element.
Get the value of a property for the first element in the set of matched elements (AngularJS 1.6).
Get the value of a property for the first element in the set of matched elements (AngularJS 1.6).
The name of the property to get.
the property value
Show or manipulate the queue of functions to be executed on the matched elements.
Show or manipulate the queue of functions to be executed on the matched elements.
A string containing the name of the queue. Defaults to fx, the standard effects queue.
Specify a function to execute when the DOM is fully loaded.
Specify a function to execute when the DOM is fully loaded.
A function to execute after the DOM is ready.
Remove the set of matched elements from the DOM.
Remove the set of matched elements from the DOM.
A selector expression that filters the set of matched elements to be removed.
Remove an attribute from each element in the set of matched elements.
Remove an attribute from each element in the set of matched elements.
An attribute to remove; as of AngularJS 1.7, it can be a space-separated list of attributes.
Remove a single class, multiple classes, or all classes from each element in the set of matched elements (AngularJS 1.4).
Remove a single class, multiple classes, or all classes from each element in the set of matched elements (AngularJS 1.4).
A function returning one or more space-separated class names to be removed. Receives the index position of the element in the set and the old class value as arguments.
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
Remove a single class, multiple classes, or all classes from each element in the set of matched elements.
One or more space-separated classes to be removed from the class attribute of each matched element.
Remove a previously-stored piece of data.
Remove a previously-stored piece of data.
An array or space-separated string naming the pieces of data to delete.
Remove a previously-stored piece of data.
Remove a previously-stored piece of data.
A string naming the piece of data to delete.
Remove a previously-stored piece of data.
Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
A function that returns content with which to replace the set of matched elements.
Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.
The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.
The horizontal scroll position is the same as the number of pixels that are hidden from view above the scrollable area.
The horizontal scroll position is the same as the number of pixels that are hidden from view above the scrollable area. Setting the scrollLeft positions the horizontal scroll of each matched element.
An integer indicating the new position to set the scroll bar to.
Get the current horizontal position of the scroll bar for the first element in the set of matched elements or set the horizontal position of the scroll bar for every matched element.
Set the current vertical position of the scroll bar for each of the set of matched elements.
Set the current vertical position of the scroll bar for each of the set of matched elements.
A number indicating the new position to set the scroll bar to.
Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.
Get the current vertical position of the scroll bar for the first element in the set of matched elements or set the vertical position of the scroll bar for every matched element.
the current vertical position of the scroll bar
Hides a visible HTML element
Hides a visible HTML element
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
Get the siblings of each element in the set of matched elements, optionally filtered by a selector.
A string containing a selector expression to match elements against.
self reference
The jQuery slideDown() method is used to slide down an element.
The jQuery slideDown() method is used to slide down an element.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
The jQuery slideToggle() method toggles between the slideDown() and slideUp() methods.
The jQuery slideToggle() method toggles between the slideDown() and slideUp() methods.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
The jQuery slideUp() method is used to slide up an element.
The jQuery slideUp() method is used to slide up an element.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
Sets or returns the text content of selected elements
Sets or returns the text content of selected elements
the value attribute
Sets or returns the text content of selected elements
Sets or returns the text content of selected elements
the value attribute of the selected elements.
Toggles between the hide() and show() methods.
Toggles between the hide() and show() methods.
The optional speed parameter can take the following values: "slow", "fast", or milliseconds.
The optional callback parameter is a function to be executed after toggle() completes.
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.
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.
One or more class names (separated by spaces) to be toggled for each element in the matched set.
A boolean value to determine whether the class should be added or removed.
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.
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.
the handler function
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.
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.
One or more class names (separated by spaces) to be toggled for each element in the matched set.
Execute all handlers attached to an element for an event.
Execute all handlers attached to an element for an event.
A string containing a JavaScript event type, such as click or submit; or an event object
Additional parameters to pass along to the event handler.
an Object
Remove a previously-attached event handler from the elements.
Remove a previously-attached event handler from the elements.
A jQuery.Event object.
Remove a previously-attached event handler from the elements.
Remove a previously-attached event handler from the elements.
A string containing a JavaScript event type, such as click or submit.
The function that is to be no longer executed.
Remove a previously-attached event handler from the elements.
Remove a previously-attached event handler from the elements.
A string containing a JavaScript event type, such as click or submit.
Unbinds the corresponding 'return false' function that was bound using .bind( eventType, false ).
Remove a previously-attached event handler from the elements.
Remove a previously-attached event handler from the elements.
A string containing a JavaScript event type, such as click or submit.
Remove a previously-attached event handler from the elements.
The val() method returns or sets the value attribute of the selected elements.
The val() method returns or sets the value attribute of the selected elements.
the value attribute
The val() method returns or sets the value attribute of the selected elements.
The val() method returns or sets the value attribute of the selected elements.
the value attribute of the selected elements.
Sets the width of an element (excludes padding, border and margin).
Sets the width of an element (excludes padding, border and margin).
the desired width of an element
Returns the width of an element (excludes padding, border and margin).
Returns the width of an element (excludes padding, border and margin).
the width of an element
Wrap an HTML structure around each element in the set of matched elements.
Wrap an HTML structure around each element in the set of matched elements.
A callback function returning the HTML content or jQuery object to wrap around the matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
Wrap an HTML structure around each element in the set of matched elements.
Wrap an HTML structure around each element in the set of matched elements.
A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. When you pass a jQuery collection containing more than one element, or a selector matching more than one element, the first element will be used.
JQuery Element