$("tr[class*='Row']").each(function(){
if($(this).hasClass("[class*='Row0']")){
alert("This one is good boys."); }
else{
$(this).remove();
}
});
So maybe there is a better way to do the whole thing but I need to find all the tr classes that has 'Row' inside in it and delete it, except for the class Row0, so I tried doing hasClass, find and so on but I can't seem to make it work because I need to use *=.
TL-DR: I want to delete all the classes that has a Row in it except for Row0. My pseudo-code is up there.