Well, which one do I THINK is faster, or which one actually IS faster?

I "think" that asking for an id of "music" should be the fastest sort of
search as there should only be ONE of them on the page. I would think that
asking it to search all divs THEN for a div with the ID of music would take
longer.

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Klaus Hartl
Sent: Monday, September 18, 2006 9:29 AM
To: jQuery Discussion.
Subject: Re: [jQuery] LOADING DATA and Returning a VAR - an odd
inconsistancy



> referancing div#music or #music equate to the same as long as the node
> is a div.

Yes, but which query do you think is faster?


-- Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to