before

before inserts nodes just before the node, while replacing strings in the nodes with equivalent text nodes.

Syntax

node.before(...nodes)

Examples

1

2

3

4

Internal

after

remove

replaceWith

External

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu