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));
Find html nodes using document.querySelectorAll and remove them.
var nodes = document.querySelectorAll('.someSelector');
nodes.forEach(node => node.parentNode.removeChild(node));
Comments
Leave a Reply