/ Published in: JavaScript
Expand |
Embed | Plain Text
function removeChildrenFromNode(node) { if(node.hasChildNodes()) { while(node.childNodes.length >= 1 ) { node.removeChild(node.firstChild); } } }
Comments
Subscribe to comments
You need to login to post a comment.

node.innerHTML = '';