AJAX
Basics
Data
DOM
Effects
Events
Forms
jQuery UI
Plug Ins
Traversing
The remove()
removes the selected element (and any child elements).
When you remove the demo1 div, it will be removed entirely. Inspect this element after running the test.
$("#RemoveButton").click(function ()
{
$("#demo1").remove();
});