How can I delete all rows of an HTML table except the
If you do not want to remove \'s using Javascript, and without looping through all the rows in the table? I have a very huge
th and just want to remove the rows inside, this is working perfectly.var tb = document.getElementById('tableId');
while(tb.rows.length > 1) {
tb.deleteRow(1);
}