.prev(selector) not working
<p>Here's the problem (<a href="http://jsfiddle.net/vWafe/1/" rel="nofollow">live copy </a>):</p>

<p>CSS:</p>

<pre><code>div {
    border: 1px solid black;
}
</code></pre>

<p>HTML:</p>

<pre><code>&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div class="test"&gt;Should have a blue border&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
&lt;div&gt;.&lt;/div&gt;&lt;br&gt;
</code></pre>

<p>JavaScript:</p>

<pre><code>$('div:last').css('border', '1px solid red')
    .prev('.test').css('border', '1px solid blue');
</code></pre>

<p>It seems that when I do <code>$(selector).prev(.className)</code> or <code>$(selector).prev(tag.className)</code> I get an empty set. What's wrong with this?</p>
