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
Have you tried this?:
$("#<%=tblDetailFourn.ClientID%> tbody").html('')
$('#tblDetailFourn tbody').empty();
Based on the html you provided the solution is following
$("#tblDetailFourn tbody").empty();
This will work perfectly.
Thanks