>yes, all of what you said is correct.. an alternative way to access a
>single dom element would be $("p#thisIsMyParagraph").get(0) (both ways
>to access the dom element are correct).. just one advice, it's much
>faster to find the element with just the id, without the tag,.. because
>when writing the tag, jquery has to look through all the paragraphs to
>find the one with the 'thisIsMyParagraph' id..

I haven't really spent any time looking through the parsing engine, but
wouldn't it be faster to find elements by ID and then filter by the tag?

-Dan

Reply via email to