How to find sorted previous element in jquery .?
<pre><code>&lt;div id="con" &gt;
    &lt;p class="bb"&gt;1&lt;/p&gt;
    &lt;p class="aa"&gt;2&lt;/p&gt;
    &lt;p class="aa"&gt;3&lt;/p&gt;
    &lt;p class="bb"&gt;4&lt;/p&gt; /*----- i want this reference */
    &lt;p class="aa"&gt;5&lt;/p&gt;
    &lt;p class="aa"&gt;6&lt;/p&gt;
    &lt;p id="last" class="aa"&gt;7&lt;/p&gt;
    &lt;p class="aa"&gt;6&lt;/p&gt;
    &lt;p class="aa"&gt;6&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>i want to find the previous element among the siblings with sorted value.
here i want to find the 'p' has class 'aa' previous to #last</p>

<pre><code>$("#last").prev('p.bb').text()
</code></pre>

<p>// empty string</p>

<pre><code> $("#last").prev().text()
</code></pre>

<p>//will give <strong>6</strong></p>

<p>i want 4.. just the text of previous closest 'p.bb'</p>
