Calling function within .each()
<p>I would like to repeat the chained events starting at <code>.animate()</code> from inside itself (indicated by comment).  What is the correct way to write this?</p>

<pre><code>$("div").each(function(i, e){  
  $(this).animate({ left: $(this).parent().width() }, d[i], "linear",
      function(){ $(this).css({left: -parseInt($(this).css("width")) })
      //would like to call function at this stage
   });
})        
</code></pre>

<p><strong>This ended up working:</strong></p>

<pre><code>   $("div").each( v = function(i, e){  
     $(this).animate({ left: $(this).parent().width() }, d[i], "linear",
         function(){ $(this).css({left: -parseInt($(this).css("width")) })
         v();
      });
   });          
</code></pre>
