[jQuery] using :has with selector

[jQuery] using :has with selector


Anyone can think of a reason why this shouldn't work? I'm trying to
select the Row (tr) where the cell of td with class "someclass"
contains "mytext". Since I want to work on the row (tr) itself, I need
to use :has because I don't need to select the td itself. Am I wrong
or am I wrong?
$("#tableid tbody tr:has(td.someclass:contains(mytext))").dosomething
();