title: jQuery selector for the higher inline-block div into its container's row
body: <p>I have a list of divs inside a container.</p>
  
  <p>HTML: </p>
  
  <pre><code>&lt;div class="container"&gt;
      &lt;div class="item"&gt;item 1&lt;/div&gt;
      &lt;div class="item"&gt;item 2 some text some text some text&lt;/div&gt;
      &lt;div class="item"&gt;item 3&lt;/div&gt;
      &lt;div class="item"&gt;item 4&lt;/div&gt;
      &lt;div class="item"&gt;item 5 some text/div&gt;
      &lt;div class="item"&gt;item 6&lt;/div&gt;
      &lt;div class="item"&gt;item 7 some text some text some text some text some text some text&lt;/div&gt;
      &lt;div class="item"&gt;item 8 some text&lt;/div&gt;
      &lt;div class="item"&gt;item 9&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>.container {
      border: 1px solid red;
      padding: 10px;
  }
  
  .item {
      display: inline-block;
      border: 1px solid green;
      width: 120px;
      margin: 10px;
      background-color:blue;
  }
  </code></pre>
  
  <p>In a such situation the result is that "items" have different heights, related to the text inside each one.</p>
  
  <p>I would change the behavior of the "items" divs so that the higher "item" div of the ROW passes it's height to the other divs, but only those in the same row.</p>
  
  <p>So each row's "item" must have the height of its row' higher element.</p>
  
  <p>Obviously if I change the size of the viewport, the order of the rows changes, changing the arrangement.</p>
  
  <p>Jquery or javascript, please.</p>