jQuery API

DOM Replacement


These methods are used to remove content from the DOM and replace it with new content.

  • .replaceAll()

    A selector expression indicating which element(s) to replace.

  • .replaceWith()

    Replace each element in the set of matched elements with the provided new content.