I have an HTML table filled with a number of rows.
How can I remove all the rows from the table?
If you want to clear the data but keep the headers:
$('#myTableId tbody').empty();
The table must be formatted in this manner:
header1header2 data1data2