Does anyone know offhand how much overhead using .add() instead of the comma incurs? Is it just the additional function call?
I've always used comma in selectors but using .add() instead is much clearer as it separates the selectors in an obvious manner. --rob On 8/15/07, Matt Stith <[EMAIL PROTECTED]> wrote: > > I would do something like > > $("#X").add(".Y"); > > On 8/15/07, rickdog <[EMAIL PROTECTED] > wrote: > > > > > > What is the cleanest way for ORing select results, e.g. returning all > > DIVs with id="X" or class="Y"? > > > > > -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 "There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.