I know you can use .find to find td:contains(\'text\'), but if I have a tr with say, 3 td\'s, and one of the td\'s might have class=
.find
td:contains(\'text\')
class=
To select any tr that has a td.specialclass:
tr
td.specialclass
$('tr:has(td.specialclass)')
Or if you have a tr (represented by this) and you simply want to check if it has such a td:
this
td
if ($(this).find('td.specialclass').length)