hi Karl,

It's very necessary to know the performance of different selector. Can you
please explain more about the difference among following expression?
1, $('#id')
2, $('tag#id')

3, $('.class',context)
4, $('#id .class')
5, $('.class1 .class2')

On 12/16/06, Karl Swedberg <[EMAIL PROTECTED]> wrote:

Hey everyone,
I try not to spam the list with announcements about my learning jquery
posts, figuring that if you want to read them you'll subscribe to the feed.
However, the entry I just posted has to do with optimizing DOM traversal,
which is a subject that comes up a lot on this mailing list, so I want to
make sure I'm not leading anyone astray or misrepresenting anything:

http://www.learningjquery.com/2006/12/quick-tip-optimizing-dom-traversal

If anyone has time to take a quick look at the entry and check it over for
inaccuracies, I would greatly appreciate it. If you'd like to add, improve,
or correct something, feel free to respond in a comment, reply to this
email, or drop me a note offline and I'll fix things up.

Thanks!

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




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





--
Best regards

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

Reply via email to