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
Try http://api.jquery.com/child-selector/
$("#<%=tblDetailFourn.ClientID%> > tbody > tr").remove();
What you have should work though.