click to remove button in html code example Example: how to remove html element in jquery $("button").click(function(){ $("p").remove(); });