[jQuery] Re: ul.nav a VS. .nav li > a

2009-07-01 Thread olsch01
a") only the anchors that are direct > > descendant of "li" elements will be chosen > > in the first statement (".nav li a" ) every anchor will be picked, direct or > > indirect descendant > > > - Original Message - > > From: &

[jQuery] Re: ul.nav a VS. .nav li > a

2009-06-30 Thread Ricardo
hors that are direct > descendant of "li" elements will be chosen > in the first statement (".nav li a" ) every anchor will be picked, direct or > indirect descendant > > - Original Message ----- > From: "brian" > To: > Sent: Tuesday, Jun

[jQuery] Re: ul.nav a VS. .nav li > a

2009-06-30 Thread Cesar Sanz
direct or indirect descendant - Original Message - From: "brian" To: Sent: Tuesday, June 30, 2009 11:45 AM Subject: [jQuery] Re: ul.nav a VS. .nav li > a I can't speak for Sizzle but, if you'll only ever have one "nav" element on a page, you&#x

[jQuery] Re: ul.nav a VS. .nav li > a

2009-06-30 Thread brian
I can't speak for Sizzle but, if you'll only ever have one "nav" element on a page, you're better off using an ID than a class. On Tue, Jun 30, 2009 at 8:03 AM, north wrote: > > Hi, > > yesterday I read an article about jQuery performance. In one part the > author talks about selectors and uses >