SyntaxFix
Write A Post
Hire A Developer
Questions
You can use filter() to do that:
var tableRow = $("td").filter(function() { return $(this).text() == "foo"; }).closest("tr");