jQuery Clear Div Contents

Sam Deering

Simple jQuery code snippet to clear the contents of a div. Nothing special, this function shows just how easy it is to remove stuff from the DOM using jQuery.


Read more: http://api.jquery.com/empty/


Read more: http://api.jquery.com/remove/

Free book: Jump Start HTML5 Basics

Grab a free copy of one our latest ebooks! Packed with hints and tips on HTML5's most powerful new features.

  • http://www.jampersonals.com Jamaica Dating

    Thank you for this post, was looking for a quick reference and came across your post.

  • charan

    Thank you for the solution.