The DOM – Removing Nodes There are two methods we can use to remove a node from the DOM: remove() and removeChild() remove() For the remove() method you must have a reference to the exact node to remove. nodeToRemove.remove(); removeChild()…
Web Development, Tech, News and more!
The DOM – Removing Nodes There are two methods we can use to remove a node from the DOM: remove() and removeChild() remove() For the remove() method you must have a reference to the exact node to remove. nodeToRemove.remove(); removeChild()…