jQuery If Div Does NOT Exist
<p>I have 3 images and have a function so that on mouse rollover they fade in and out. I don't want to do this if the image being rolled over has the class 'selected'.</p>

<p>So far I have this code:</p>

<pre><code>$(".thumbs").hover(function(){

if (!($(this).hasClass(".selected")){

$(this).stop().fadeTo("normal", 1.0);
},function(){
$(this).stop().fadeTo("slow", 0.3);

}

});
</code></pre>

<p>to me the IF statement looks like it should be:</p>

<pre><code>if (!($(this).hasClass(".selected"))){
</code></pre>

<p>but neither work so who knows. When I implement this code my entire javascript stops working, any ideas why?</p>

<p>There is virtually NO information on IF statements for jQuery on Google, it's ridiculous. I would greatly appreciate any help!</p>
