I have a table for which I am attempting to select all rows which have a td containing the text \'Test\' and then hide the td with class \'ms-vb-icon\' on all the matched ro
Try with
$("tr:has(td:contains('test')").each(function(){ $(this).parent().children(".ms-vb-icon").css("visibility","hidden"); });
The class .ms-vb-icon is a child of the tr while the $(this) function refer to the td
.ms-vb-icon
tr
$(this)
td