Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete all childs in node

while (myNode.firstChild) {
  myNode.removeChild(myNode.lastChild);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #childs #node
ADD COMMENT
Topic
Name
9+6 =