The jury removed method allows us to remove specified elements from our Web page.
In this example we have a div element with some text nested inside.
When we click the Remove button the div is removed from the page along with any of its contents.
We can see in the HMO file that our body contains a button and a div with the ideas square
the style sheet simply defines the style rules for the square in this case it has a height of two hundred
pixels or width of three hundred pixels and some other basic attributes as well
in our script.
We've set up a click event on the button.
The event will remove the element with ideas square from the page and again this is removed using the
remove method we can also substitute remove method for empty.
And in this case we'll be emptying any of the contents in this element.
In the square element so if we could remove Now you'll notice that the contents of the square is removed
and that's how the empty and remove methods are to be applied.