Does an alternative to .closest() exist?
<p>this is a snippet from my code:</p>

<pre><code>$(&quot;#myid&quot;).append($(&quot;p:contains('text')&quot;).closest(&quot;div&quot;).clone());
</code></pre>

<p>I tried to get the first closest ancestor div-element of p containing 'text'.</p>

<p>I'm looking for an alternative to .closest() because I have to use jquery version 1.2.6.
Do you have got an idea what I'm looking for?</p>

<p>I hope you can help me. I appreciate every hint, piece of code, etc.. </p>
