How can I delete all rows of an HTML table except the
Assing some id to tbody tag. i.e. . After this, the following line should retain the table header/footer and remove all the rows. And, if you want the entire table (header/rows/footer) to wipe out, then set the id at table level i.e. \'s using Javascript, and without looping through all the rows in the table? I have a very huge
document.getElementById("yourID").innerHTML="";