How to retrun match element ID using jquery
<p>I want to return matched element ID using jquery filter method but it is returning 'object object' <a href="http://jsfiddle.net/xTF8f/10/" rel="nofollow">fiddle</a></p>

<p>//css</p>

<pre><code>.none{display:none}
</code></pre>

<p>//html</p>

<pre><code>&lt;div class="none"&gt;
 &lt;span style="display:none"&gt;first&lt;/span&gt;
 &lt;span style="display:block"&gt;second&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>//script</p>

<pre><code>visibles = $('.none').find('span').filter(function(){
if($(this).css('display') == 'block')   
return $(this).attr('id');
});
alert(visibles);
</code></pre>
