how to get children array of an element in jquery
<p>Heres my element, i want to arrange the children inside it by looping through them.</p>

<pre><code>&lt;div id="animDummy1"&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;&lt;/div&gt;
    &lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Heres how i imagine the code should look but children(), of course, doesn't return an array of the children</p>

<pre><code>var children=$('#animDummy1').children();
for(var i=0;i&lt;children.length;i++){
    children[i].css('left',i*120+'px');
}
</code></pre>

<p>The question - can i get children array for use in a loop? I know i can attach a function for each of children to be executed on, but can i get that increasing "i" in there?</p>

<p>Thnx.</p>
