Jquery - Get parent id (parent must have a special Classname)
<p>i have the "c_500" id and i need the id from next parent with the classname "pp".</p>

<p>i search something like ...</p>

<pre><code>$('#c_500').getNextParentWithClass('pp');
</code></pre>

<p>html</p>

<pre><code> &lt;div id="d_548" class="pp"&gt;

    &lt;div class="class_ft"&gt;

      Blub&lt;hr /&gt;
      &lt;div id="here"&gt;content&lt;/div&gt;
      &lt;div id="c_500"&gt;content&lt;/div&gt;

    &lt;/div&gt;

  &lt;/div&gt;
</code></pre>

<p>Thanks in advance!
Peter</p>
