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 using this:
$('#<%=tblDetailFourn.ClientID%> tr').not(function(){ return !!$(this).has('th').length; }).remove();