TD is a TR children so use the CSS descendant selector tr td.
$("#tableid tbody tr td.someclass:contains('mytext'))").dosomething();
PS: mytext is a string and should be quoted.
Maurício
-----Mensagem Original-----
De: "SteelRing" <steelr...@gmail.com>
Para: "jQuery (English)" <jquery-en@googlegroups.com>
Enviada em: terça-feira, 10 de fevereiro de 2009 19:57
Assunto: [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
();