Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to delete an html element


    const element = document.getElementById("element")
    div.parentNode.removeChild(div);
    element.parentNode.removeChild(element);
 
PREVIOUS NEXT
Tagged: #How #delete #html #element
ADD COMMENT
Topic
Name
9+1 =