I am not sure why but jQuery find function is not able to find the class using the class name.
Here is the result from Visual Studio immediate window which shows that there is a class called TBLCONTENTS but when searched using the find method it returns nothing.
optionRows[0].className
"TBLCONTENTS"
optionRows.find(".TBLCONTENTS")
{...}
context: {object}
jquery: "1.7.1"
length: 0
prevObject: {...}
selector: ".TBLCONTENTS"
Can I remove rows based on the filter:
$(optionRows).filter(".TBLCONTENTS").not(":first").remove();
Its because
findlooks at the descendants. You might wantfilterinstead.