Searching an element with specific text in jQuery
<p>I want to get an element that contains specific text. When I use the :contains selector, the result is also all of the parents elements of that specific element.</p>

<p>Also, if there is more than on element that actually contains the text, the result of the selector is very cumbersome. Is it possible to get only the elements themselves which contains the specific text?</p>

<p>Thanks,
Joel</p>

<p>EDIT:</p>

<p>Example:</p>

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

<p>and $("div:contains('text')") results in:</p>

<pre><code>[&lt;div&gt;​…​&lt;/div&gt;​, &lt;div&gt;​…​&lt;/div&gt;​, &lt;div&gt;​text​&lt;/div&gt;​]
</code></pre>

<p>I want a way to only get the <code>&lt;div&gt;text&lt;/div&gt;</code> element. (I know I can use .get(-1) to get that last element, but I want to know if there is something more gemeric).</p>
