this .filter works! thanks a bunch
On Feb 11, 12:20 pm, Ricardo Tomasi wrote:
> Try doing it in two steps:
>
> $("#tableid tbody tr:has(td.someclass)").filter(':contains
> (mytext)').doSomething()
>
> On Feb 10, 7:57 pm, SteelRing wrote:
>
> > Anyone can think of a reason why this shoul
Try doing it in two steps:
$("#tableid tbody tr:has(td.someclass)").filter(':contains
(mytext)').doSomething()
On Feb 10, 7:57 pm, SteelRing wrote:
> 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
ery (English)"
>
>
> Date: 02/10/2009 05:51 PM
>
>
> Subject: [jQuery] Re: using :has with selector
ate: 02/10/2009 05:51 PM
Subject: [jQuery] Re: using :has with selector
This is going to select the td, whereas I need to select the tr.
Is there a reason to not use $(this).parent() in the function to
select the tr?
On Feb 10, 12:50 pm, SteelRing wrote:
> This is going to select the td, whereas I need to select the tr.
>
> On Feb 10, 4:41 pm, "Mauricio \(Maujor\) Samy Silva"
>
> wrote:
> > TD is a TR children so use the CSS des
This is going to select the td, whereas I need to select the tr.
On Feb 10, 4:41 pm, "Mauricio \(Maujor\) Samy Silva"
wrote:
> 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 s
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"
Para: "jQuery (English)"
Enviada em: terça-feira, 10 de
FYI, jquery 1.3.1
On Feb 10, 3:57 pm, SteelRing wrote:
> 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 ne
8 matches
Mail list logo