Which of these would be faster? $("#myForm").each(function(frmI,frm){ $("input.classA",frm)... $("input.classB",frm)... $("#inputC",frm)... });
or $("#myForm input.classA")... $("#myForm input.classB")... $("#inputC")... On Jun 27, 2:03 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > 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 >