I have the following:
for (var i = 0; i < children.length; i++){
if(hasClass(children[i], \"lbExclude\")){
children[i].parentNode.removeChild(ch
If you use a js library it's as simple as this:
$('.lbExclude').remove();
Otherwise if you want to acquire all elements under a node you can collect them all natively:
var nodes = node.getElementsByTagName('*');
for (var i = 0; i < nodes.length; i++) {
var n = nodes[i];
if (hasClass(n, 'lbExclude')) {
node.parentNode.removeChild(node);
}
}