I want to remove all rows of my table except the header.
This is what I\'ve tried but it always deletes all rows and header:
$(\"#<%=tblDetailFour
This should work, assuming that you don't have any header elements in tbody.
$("#<%=tblDetailFourn.ClientID%> tbody tr").remove();