php_guest Posted June 21, 2009 Share Posted June 21, 2009 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 Quote Link to comment Share on other sites More sharing options...
trq Posted June 21, 2009 Share Posted June 21, 2009 $("#test >*").remove(); Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted June 21, 2009 Share Posted June 21, 2009 $("#test").text(''); Quote Link to comment Share on other sites More sharing options...
php_guest Posted June 21, 2009 Author Share Posted June 21, 2009 $("#test >*").remove(); tnx, works perfectly! Quote Link to comment Share on other sites More sharing options...
vbnullchar Posted June 23, 2009 Share Posted June 23, 2009 $("#test").empty(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.