title: jquery - search upwards for an element with a certain class?
body: <p>Is there a way in jquery to target <code>$(this)</code>.<code>some element above it</code>.with <code>class of 'abc'</code></p>
  
  <p>(by above, I mean parent, grandparent etc.)</p>
  
  <p>for example:</p>
  
  <pre><code>&lt;div class='a'&gt;
      &lt;div class='b'&gt;
          &lt;div class='c'&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>So when I click on class='c', Can i target anything above it with class='a', <strong>and</strong> get the same result as if I clicked class='b' with the same code? (if I click 'b', the 'a' div will still be its parent (or grandparent) with class of 'a')</p>