Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove element by tagname

var element = document.getElementsByTagName("label"), index;

for (index = element.length - 1; index >= 0; index--) {
    element[index].parentNode.removeChild(element[index]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #remove #element #tagname
ADD COMMENT
Topic
Name
1+2 =