[jQuery] Re: Query for elements without a specific parent

2007-10-31 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: Karl Swedberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 31, 2007 11:51 AM > To: jquery-en@googlegroups.com > Subject: [jQuery] Re: Query for elements without a specific parent > > I don't think next() will work in this

[jQuery] Re: Query for elements without a specific parent

2007-10-31 Thread George GSGD
You could use an adjacent selector: $('p+b') would work for your sample markup, but would need a bit of care depending on the real use situation. On Oct 31, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > > Assume, I have the following HTML: > > Text1 > Text2 > > How can I

[jQuery] Re: Query for elements without a specific parent

2007-10-31 Thread Karl Swedberg
On Oct 31, 2007, at 9:40 AM, Priest, James (NIH/NIEHS) [C] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Text1 Text2 How can I select the second , which is not a child of a ? As I am a newbie, I played a little bit around with :not, filter(), but unf

[jQuery] Re: Query for elements without a specific parent

2007-10-31 Thread Priest, James (NIH/NIEHS) [C]
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Text1 > Text2 > > How can I select the second , which is not a child of a ? As I > am a newbie, I played a little bit around with :not, filter(), but > unfortunately Use next()?? http://docs.jquery.com/Travers