Answers for "if i remove element jquery js function"

3

how to remove html element in jquery

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

remove jquery

$("#demo").remove();            // removes the selected element
$("#demo").empty();             // removes children
$("div").remove(".cl1, .cl2");  // removes divs with the listed classes
Posted by: Guest on August-05-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language