»
S
I
D
E
B
A
R
«
Using JQuery to clear a div [or an element]
August 7th, 2009 by admin

JQuery continues to make things easy on us. The following code will remove all of the children elements from the parent.

$('#idOfElement').empty();

Now, that was easy, eh?

Nick


Leave a Reply

You must be logged in to post a comment.

»  Substance: WordPress   »  Style: Ahren Ahimsa