In the following web we have a list with id list and a button with id del.
When we click on the button we create a function that selects the list and deletes its content with the empty() function.
Interesting Articles