jQuery: Remove vs. Hide

May 19th, 2009 by jeremychone
$("p").hide();

jQuery hide just hide an element by adding the “display:none” css properties.

$("p").remove();

jQuery remove removes the elements from the DOM including all event handlers and internally cached data.

Leave a Reply