|
replaceWith()Replaces each element in a set of HTML elements. replaceWith(content)Replaces each element in a set of HTML elements. Returns the result set. content A query result. This can be an HTML string or a result set. ExamplesReplace elements with a snippetThe following script loads a snippet and then replaces the elements matched by the script's selector with the snippet.
Replace elements with a set of snippetsThe following script loads snippets and adds their elements to a new, empty result set (using
|
|