[jQuery] Re: using :has with selector

2009-02-11 Thread SteelRing
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

[jQuery] Re: using :has with selector

2009-02-11 Thread Ricardo Tomasi
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

[jQuery] Re: using :has with selector

2009-02-11 Thread SteelRing
ery (English)"                 >                                                     > >   Date:       02/10/2009 05:51 PM                                             >                                                     > >   Subject:    [jQuery] Re: using :has with selector                

[jQuery] Re: using :has with selector

2009-02-11 Thread Michael Lawson
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.

[jQuery] Re: using :has with selector

2009-02-10 Thread James
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

[jQuery] Re: using :has with selector

2009-02-10 Thread SteelRing
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

[jQuery] Re: using :has with selector

2009-02-10 Thread Mauricio (Maujor) Samy Silva
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

[jQuery] Re: using :has with selector

2009-02-10 Thread SteelRing
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