I thought this might be a fast way to remove the contents of a very large table (3000 rows):
$jq(\"tbody\", myTable).remove();
But it\'s taking
$("#myTable > tbody").empty();
It won't touch the headers.
It's better to avoid any kind of loops, just remove all elements directly like this:
$("#mytable > tbody").html("");