How to get the # of options with the attr "selected" in a drop down using jQuery?
<p>This isn't working for me:    </p>

<pre><code>    $('select').each(function() {  

        alert($(this).find('option').attr('selected').length);

    }
</code></pre>

<p>actually what I really need is to just detect if the present select has any preselected options.</p>
