How can I clear all elements from a div canvas when clicking a button?
On a website, I have a canvas (div) where "code blocks"(form) can be dropped. There's a button that should clear the canvas completely when clicked (so delete all code blocks that are currently in the canvas). How could I do this using JavaScript?