Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

append sibling javascript after first child

function insertAfter(newNode, referenceNode) {
    referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #sibling #javascript #child
ADD COMMENT
Topic
Name
5+6 =