It helps to remove the set of matched elements from the DOM.
// To remove all < p> elements.
$(“button”).click(function(){
$(“p”).detach();
});
It helps to remove the set of matched elements from the DOM.
// To remove all < p> elements.
$(“button”).click(function(){
$(“p”).detach();
});