title: jQuery - find 1st element with a specific class from above, but not before another element
body: <p>The HTML looks something like this:</p>
  
  <pre><code>&lt;li class="divider"&gt;
    &lt;div&gt;
      ...(maybe more divs)...      
        &lt;div class="content"&gt;
           ...(maybe more divs)...
           &lt;a href="#" class="link"&gt;LINK&lt;/a&gt;
  
  ...
  </code></pre>
  
  <p>how can I select the .content DIV, from within a jQuery function hooked on the link?
  Note that I have multiple lists like this, and in some of them div.content might be missing, so I want to select this div only if it exists in the current block (li.divider).</p>
  
  <p>I tried with <code>$link.parent().parent().find('content')</code> but it fails in some cases, because the number of elements between these 2 elements can change...</p>