how to clear the values of table in html code example Example: delete all the rows of table javascript $("#table_of_items tr").remove();