Answers for "js remove element by tagname"

0

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]);
}
Posted by: Guest on May-07-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language