jQuery: if class=active?
<pre><code>$(document).ready(function() {    
    $('a#fav').bind('click', function() {
        addFav(&lt;?php echo $showUP["uID"]; ?&gt;);
    });
});
</code></pre>

<p>I need to modify this so if the a#fav has class="active" then it should do</p>

<pre><code>  removeFav(&lt;?php echo $showUP["uID"]; ?&gt;);
</code></pre>

<p>instead
How can i do this?</p>
