title: JQuery find first parent element with specific class prefix
body: <p>I want to get the first parent which has a specific class prefix, suppose:</p>
  
  <pre><code>&lt;div class="div-a3332"&gt; 
    &lt;div class="div-a89892"&gt;
      &lt;p&gt;
        &lt;div class="div-b2"&gt;
          &lt;div id="divid"&gt;hi&lt;/div&gt;
        &lt;/div&gt;
      &lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>For example, my current element is <code>#divid</code> and I want to find the first element that has the class prefix div-a. So basically it will select: </p>
  
  <pre><code>&lt;div class="div-a89892"&gt;
  </code></pre>