each in jquery binds element in order(top to bottom)?
<p>i am facing a problem when am trying to bind a array with the ids of my div's i wanted to bind them in order of their appearance staring with first to last..
The code:</p>

<pre><code>i=1;
$('.hiddenvalue').each(function(){
   arrayinit[i] = $(this).attr("id");
   i++;
});
</code></pre>

<p><em>but its binding in any random order, why is it so? any suggestions?</em></p>
