title: find the nearest parent which has class
body: <p>Assume we have the following markup:</p>
  
  <pre><code>&lt;div class="hello"&gt;
    &lt;p&gt;
      &lt;a href="#"&gt;&lt;span id="start"&gt;Start&lt;/span&gt;&lt;/a&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Is there any way to find the closest element to <code>$('#start')</code> which has a class attribute, going up the dom tree?</p>
  
  <p>CLARIFICATION:
  I actually need to get a string containing the complete path from $('#start') to $(.hello), which would contain the tag names of all elements until the 
  So based on the markup above - it would output: '<strong>span a p .hello</strong>'</p>
  
  <p>You can get the elements tag name with <code>element.prop('tagName')</code></p>