Forum Moderators: open

Message Too Old, No Replies

jquery-delete everything inside div, but not the div

         

php_member

12:45 am on Jun 21, 2009 (gmt 0)

10+ Year Member



I have one simple question. How to delete everything inside div?
I know how to delete it together with div $("#test").remove(); but I don't looking for that because I want that <div id="test"></div> stay there.

Thank you

Nutter

1:51 am on Jun 21, 2009 (gmt 0)

10+ Year Member



Can't you just do $("#test").innerHTML = "";