checking for number of selectors with jquery
<p>I am trying to see if there are any tags which have the class="red" in the code. I thought that this would work but it isn't. How would I do this?</p>

<pre><code>if ($("[class='red']").length &lt;=0)          /*if some of the entries are invalid (aka- have a red star)*/
        {
            alert('Some Entries are Invalid');
            return false;
        }
</code></pre>
