I have a TR row id (myRow) and it has a child table and that table has rows with class “.CONTENTROW”. I am using the following code to remove all the rows with class “.CONTENTROW” except the first one. This is the code I am using:
var myRow = $("#" + rowId).next().clone();
$(myRow).find(".CONTENTROW tr:gt(0)").remove();
The above does not seems to be working and does not remove any row. I tried using JSFiddle but JSFiddle is behaving in a strange way and not refreshing.
JSFIDDLE: http://jsfiddle.net/Xt6VQ/1/
$(myRow).find(".CONTENTROW").not(":first").remove();