javascript kill all childs
function removeAllChildNodes(parent) { while (parent.firstChild) { parent.removeChild(parent.firstChild); } } Code language: PHP (php)
Source: www.javascripttutorial.net
function removeAllChildNodes(parent) { while (parent.firstChild) { parent.removeChild(parent.firstChild); } } Code language: PHP (php)