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
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
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
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
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
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
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
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
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
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
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.
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.
Remove event handlers previously attached using .live() from the elements.
Removes the child elements from the selected element
Removes the child elements from the selected element
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
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
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
Inserts content at the beginning of the selected elements
Inserts content at the beginning of the selected elements
the specified content
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
TODO
TODO
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.
Removes the selected element (and its child elements)
Removes the selected element (and its child elements)
Removes one or more classes from the selected elements
Removes one or more classes from the selected elements
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.
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.
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