ManipulationS2C Home « Manipulation

Click a jQuery 3.5 API Manipulation Method signature in the table below to see in-depth information on it.

AlphabeticallyDescription
Inner DOM InsertionTop
The .append() method has two signatures:
.append( content [, moreContent] )A DOM element, HTML string, or jQuery object to insert at end of each element in matched set.
.append( function(index, html) )A function that returns a DOM element(s), HTML string, or jQuery object to insert at the end of each element in matched set.
The .appendTo() method has one signature:
.appendTo( target )Insert each element in the matched set to the end of the specified content.
The .prepend() method has two signatures:
.prepend( content [, moreContent] )A DOM element, HTML string, or jQuery object to insert at the beginning of each element in matched set.
.prepend( function(index, html) )A function that returns a DOM element(s), HTML string, or jQuery object to insert at the beginning of each element in matched set.
The .prependTo() method has one signature:
.prependTo( target )Insert each element in the matched set to the start of the specified content.
The .text() method has three signatures:
.text()Retrieve all text from the matched set including descendants.
.text( textString )Set the text contents of each element within the matched to the specified text.
.text( function(index, text) )Execute a function that returns the text contents to set.
Outer DOM InsertionTop
The .after() method has two signatures:
.after( content [, moreContent] )A DOM element, HTML string, or jQuery object to insert after each element in matched set.
.after( function(index) )A function that returns a DOM element(s), HTML string, or jQuery object to insert after each element in matched set.
The .before() method has two signatures:
.before( content [, moreContent] )A DOM element, HTML string, or jQuery object to insert before each element in matched set.
.before( function(index) )A function that returns a DOM element(s), HTML string, or jQuery object to insert before each element in matched set.
The .insertAfter() method has one signature:
.insertAfter( target )Insert the matched set after the specified target.
The .insertBefore() method has one signature:
.insertBefore( target )Insert the matched set before the specified target.
Wrapped DOM InsertionTop
The .wrap() method has two signatures:
.wrap( wrappingElement )Wrap a DOM element, HTML string, jQuery object or selector expression around each element in matched set.
.wrap( function(index) )Executes a function that returns a DOM element(s), HTML string, or jQuery object to wrap around each element in matched set.
The .wrapAll() method has one signature:
.wrapAll( wrappingElement )Wrap a DOM element, HTML string, jQuery object or selector expression around all elements in the matched set.
The .wrapInner() method has two signatures:
.wrapInner( wrappingElement )Wrap a DOM element, HTML string, jQuery object or selector expression around the content of each element in matched set.
.wrapInner( function(index) )Executes a function that returns a DOM element, HTML string, jQuery object or selector expression to wrap around the content of each element in the matched set.
DOM RemovalTop
The .detach() method has one signature:
.detach( [selector] )Remove the matched set from the DOM, including any descendants.
The .empty() method has one signature:
.empty()Remove all child nodes of the matched set from the DOM.
The .remove() method has one signature:
.remove()Permanantly remove the matched set from the DOM.
The .unwrap() method has one signature:
.unwrap()Remove the parents of the matched set from the DOM, leaving the matched set in their place.
DOM ReplacementTop
The .replaceAll() method has one signature:
.replaceAll( target )Replace the specified target elements with the matched set.
The .replaceWith() method has two signatures:
.replaceWith( newContent )Replace each element in the matched set with the specified content.
.replaceWith( function ) )Executes a function that returns a DOM element(s), HTML string, or jQuery object to replace each element in the matched set with.