Just append another each, that should do the work.

$(".whatever").each(function() { /* first this for all */ }).each(function()
{ /* then that for all */ })

Michel Belleville


2009/11/28 kotchin <kotc...@gmail.com>

> hi all
>
> i was wondering how to add a function to the end of an each loop so
> that it executes once all elements in the each array have been
> iterated through.
>
> i would have thought place the function after the closing } of the
> each group but this doesn't seem to work - it executes at the same
> time as the each loop.
>
> any thoughts/help?
>
> thanks
> tom
>
  • [jQuery] Q kotchin
    • Re: [jQuery] Q Michel Belleville

Reply via email to