Using jQuery, how do I delete all rows in a table except the first? This is my first attempt at using index selectors. If I understand the examples correctly, the following sh
To Remove all rows, except the first one (except header), use the below code:
$("#dataTable tr:gt(1)").remove();