title: first store heights form mutliple divs in array and second apply them to other elements
body: <p>this is what i want to achieve: </p>
  
  <p>(1) store heights from multiple divs (in an array?). </p>
  
  <p>(2) apply these heights to other elements. first element gets the first value, second element gets the second value of the array …</p>
  
  <p>this is what i have done to (1):</p>
  
  <pre><code>var arr = [];
  i = 0;
  $('.project').each(function(){
    projecthheights = $(this).height();
    arr[i++] = projecthheights;
  });
  </code></pre>
  
  <p>now what do i have to do for step (2)? this is certainly the wrong way ;)</p>
  
  <pre><code>$('.horizontalimage').each(function(){
   $(this).css('height',projecthheights);
  });
  </code></pre>