Answers for "delete elements in a div 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
3

how to remove html element in jquery

$("button").click(function(){
  $("p").remove();
});
Posted by: Guest on November-24-2020
4

jquery remove elemtns

.remove("#elemnt_id .elemnt_class");
Posted by: Guest on March-05-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language