How to ignore click() if an element has a certain class in jQuery?
<p>I know this should be easy stuff, but for some reason the click event is still firing for the element that has a "selected" class.</p>

<p>Can anyone spot the problem with this line?</p>

<pre><code>h.find("li a").not("li a.selected").click(function () {
</code></pre>
