How to use regular expression in prev()?
<p>How to use regular expression in prev()?</p>

<pre class="lang-html prettyprint-override"><code>&lt;div class="aaa"&gt;aaa&lt;/div&gt;
&lt;div style="display: none" class="bbb"&gt;bbb&lt;/div&gt;
&lt;div style="display: none" class="ccc"&gt;ccc&lt;/div&gt;
&lt;div class="ddd"&gt;ddd&lt;/div&gt;
</code></pre>

<pre class="lang-javascript prettyprint-override"><code>$(".ddd").click(function(){
    alert($(this).prev('display:visible').attr('class'));
})
</code></pre>

<p>This not working. If i have:</p>

<p>This should show me "aaa". If i remove "display:  visible" from prev() then this show me "ccc".</p>

<p><a href="http://jsfiddle.net/WaVrw/" rel="nofollow">http://jsfiddle.net/WaVrw/</a></p>
