insertAfter

public function insertAfter(node:Element, reference_node:Element/String/Array):Element/Array
Inserts a element after the reference element.

Params

Name Type Description
node Element Element to insert after the reference.
reference_node Element/String/Array Reference element, element id or array of elements to insert after.

Returns

Element/Array Element that got added or an array with elements.