title: Get .each() prev element height
body: <p>How can I get the height of the previous element in the loop? Here is my code </p>
  
  <pre><code>jQuery(".wrap").each(function(index, element) {
    var id = jQuery(this).data('id');
    var wrapper_height = jQuery('.wrap_' + id).outerHeight(true); 
  });
  </code></pre>
  
  <p>i need the height of first element which iterated and then all previous elements.</p>
  
  <p>I have two div's of class name <strong>wrap</strong> i need the height of first <strong>wrap</strong> item when it's iterated and same for next (when third element is iterating in loop i need second element height).</p>
  
  <p>when 4th item is iterating in each i need third iterated item height. </p>
  
  <p>Markup: <code>&lt;div class="wrap wrap_283" data-type="offer_bar" id="283" data-id="283" data-trigger_method="auto" data-auto_method="im" data-timer_date="2" style=""&gt;Some content&lt;/div&gt; &lt;div class="wrap wrap_284" data-type="offer_bar" id="284" data-id="283" data-trigger_method="auto" data-auto_method="im" data-timer_date="2" style=""&gt;Some content&lt;/div&gt;</code></p>
  
  <p>Any help ?</p>