jQuery: Select <classname1> but filter out <classname2>
<p>jQuery Validation plugin can generate two types of labels, one with class="error" and the other has class="error valid".</p>

<p>I have the following code to detect the existence of labels with class="error":</p>

<pre><code>($form.find("label.error").not($form.find("label.valid")).length == 0);
</code></pre>

<p>Is there any other better (ie. more optimized) way doing this? Thanks.</p>
