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);

I think it depends upon the context.
If the loop is needed for achieve the purpouse of the script the approach is efficient.


Reply via email to