Remove nodes fetched using document.querySelectorAll

Find html nodes using document.querySelectorAll and remove them.

var nodes = document.querySelectorAll('.someSelector');
nodes.forEach(node => node.parentNode.removeChild(node));
This post is available on GitHub.
Posted .

Comments

Leave a Reply