jQuery - remove()

The remove() removes the selected element (and any child elements).

This will stay...

When you remove the demo1 div, it will be removed entirely. Inspect this element after running the test.

 


$("#RemoveButton").click(function ()
{
    $("#demo1").remove();
});