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.

One Response to “jQuery: Remove vs. Hide”

  1. jkeks Says:

    interesting, but when I use toggle, (same hide and show) player stop playing in http://onlineclock.jkeks.ru

Leave a Reply