On Tue, Mar 31, 2009 at 5:42 PM, Eric Garside <gars...@gmail.com> wrote: > > Right, but the problems with that approach is inefficiency. It's more > efficient to grab the entire set of elements via $('.event-phase') and > comparing their "rel" attribute than it is to throw a loop around $ > ('.event-phase-' + i);
Which is why I suggested this approach: <div class="event-phase" id="evph_1"></div> <div class="event-phase" id="evph_2"></div> <div class="event-phase" id="evph_3"></div> <div class="event-phase" id="evph_4"></div> <div class="event-phase"id="evph_5"></div>