Can't you just do an each loop? $('.box').each(function(){ $(this).animate({ width: 400 }, 'slow'); });
On 10/9/07, petrozza <[EMAIL PROTECTED]> wrote: > > > Hi! I am relatively new to jQuery and recently ran into the following > problem. Let's say I have a few DIVs of the same dimensions on top of > each other. I need to expand/shrink them at the same time. I tried > running a loop through these DIVs and doing something like: > > for(i=0;i<5;i++){ > $('#divid'+i).animate({width: 400}, 'slow'); > } > > this works but the animations don't occur at exactly the same time for > each element (loop delay obviously). Is there a way to make all > animations start at the same time? > > Thanks > > -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/