Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove element by class

function removeElementsByClass(className){
    var elements = document.getElementsByClassName(className);
    while(elements.length > 0){
        elements[0].parentNode.removeChild(elements[0]);
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #element #class
ADD COMMENT
Topic
Name
5+4 =