I have an HTML table filled with a number of rows.
How can I remove all the rows from the table?
Having a table like this (with a header and a body)
remove every tr having a parent called tbody inside the #tableId
$('#tableId tbody > tr').remove();
and in reverse if you want to add to your table
$('#tableId tbody').append("....");