title: jQuery - get height of element and apply that height to another element inside same parent
body: <p>Here is a fiddle - <a href="https://jsfiddle.net/t6tpxqco/18/" rel="nofollow noreferrer">https://jsfiddle.net/t6tpxqco/18/</a></p>
  
  <p>What I am trying to do is grab height of an element ".right" and apply an inline style to ".left" that matches the height of the .right grabbed by jQuery:</p>
  
  <pre><code>&lt;li class="first"&gt;
    &lt;div class="left"&gt;&lt;/div&gt;
    &lt;div class="right"&gt;
    &lt;h1&gt;Bear claw bear claw biscuit biscuit.&lt;/h1&gt;
      &lt;p class="nfo"&gt;Bear claw bear claw biscuit biscuit bonbon candy canes chocolate chocolate cake gingerbread. Gummies chocolate bar dragée tootsie roll. Chocolate bar sweet roll oat cake bear claw dragée chocolate bar chocolate bar.&lt;/p&gt;
      &lt;a href="" class="readMore"&gt;Read More&lt;/a&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  
  &lt;li class="second"&gt;
    &lt;div class="left"&gt;&lt;/div&gt;
    &lt;div class="right"&gt;
      &lt;h1&gt;Chocolate bar sweet roll oat cake bear claw dragée&lt;/h1&gt;
      &lt;p class="nfo"&gt;Bear claw bear claw biscuit biscuit bonbon candy canes chocolate chocolate cake gingerbread. Gummies chocolate bar dragée tootsie roll. Chocolate bar sweet roll oat cake bear claw dragée chocolate bar chocolate bar.Pudding chupa chups soufflé sweet roll jelly jujubes cake chocolate cake. Tiramisu gummies pastry donut caramels. Tart pastry liquorice tiramisu.&lt;/p&gt;
      &lt;a href="" class="readMore"&gt;Read More&lt;/a&gt;
    &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>Here is the jQuery code I'm using:</p>
  
  <pre><code>var pressHeight = $('.right').height();
  $('.left').css({
      height: pressHeight
  })
  </code></pre>
  
  <p>So the problem is that it obviously grabs the height of the .right element in the .first list item and applies that height to all of the .left elements. </p>
  
  <p>But if you look at the fiddle, each .right element is a different size than one another. What I need to do is match the .left(picture) element's height with its respective .right element inside the same parent list item.</p>
  
  <p>So to help simplify I need the picture in each list item to match the height of the content to its right.</p>
  
  <p>How can I do this.</p>
  
  <p>NOTE: this is content that is generated through the WordPress loop so I cannot add ID's to the list item.</p>