Example

Remove all p elements:

$("button").click(function(){
  $("p").remove();
});

Try it yourself »

Definition and Usage

The remove() method removes the selected elements, including all text and child nodes.

Syntax

$(selector).remove()