AJAX
Basics
Data
DOM
Effects
Events
Forms
jQuery UI
Plug Ins
Traversing
The remove()
removes the child element's (content) from the selected element.
When you empty the demo1 div, it will remain in the DOM but be empty. Inspect this element after running the test.
$("#EmptyButton").click(function ()
{
$("#demo1").empty();
});