currently I am doing as following to remove a node.
A_NODE.parentNode.removeChild(A_NODE);
this to me sound a bit like a detour. I tried.
A_NODE.remove();
but that only seemed to remove the node in question and not it children. so my question is are there any way shorter than the 1st example to remove a node and all its children?
A_NODE.parentNode.removeChild(A_NODE);
this to me sound a bit like a detour. I tried.
A_NODE.remove();
but that only seemed to remove the node in question and not it children. so my question is are there any way shorter than the 1st example to remove a node and all its children?
Comment