Answers for "remove selected child using jquery"

5

remove element by class

function removeElementsByClass(className){
    var elements = document.getElementsByClassName(className);
    while(elements.length > 0){
        elements[0].parentNode.removeChild(elements[0]);
    }
}
Posted by: Guest on October-17-2020
4

remove div javascript

var div = document.getElementById('div-01');
div.remove();
Posted by: Guest on June-16-2020

Code answers related to "remove selected child using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language