title: Find the previous occurrence of an element filtered by class
body: <p>I have a php loop that print a lot of html in this form:</p>
  
  <pre><code>&lt;div class="something"&gt;
    ...
    &lt;img class="prod-img" src="What-I-Need"/&gt;
  &lt;/div&gt;
  &lt;div class="buttons" data-description="Some text here..."&gt;
    &lt;a class="activator"&gt;Click me!&lt;/a&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>That piece of code is repeated many times. Usig jQuery I manage to get the description content using the parent selector just by:</p>
  
  <pre><code>$('.activator').click(function() {
    alert($(this).parents('.buttons').data('description'));
  })
  </code></pre>
  
  <p>Since $(this) have a parent with the field I need, that js code is working great, I wonder now, how can I retrieve the src content of the class prod-img? since is outside the parent div...</p>