They're both just as fast as each other - jQuery has an optimization in place to account for that.
Terry: I assume that you mean "div#TimelineContainer" in your first example. --John On 6/27/07, Diego A. <[EMAIL PROTECTED]> wrote:
I'm not sure, but I'm guessing there will be some sort of performance difference. I'm guessing '#id' is faster than 'div#id' if '#id' just uses getElementById, whereas 'div#id' might finds all divs then filter by id. On Jun 27, 5:46 pm, Terry B <[EMAIL PROTECTED]> wrote: > what is the difference between > $t("div.TimelineContainer") > and > $t("#TimelineContainer") > > within JQuery? is the first using byid and the other by tagname?