In jQuery I need to do an if statement to see if $this doesn\'t contain the class \'.selected\'.
$(\".thumbs\").hover(function(){ $(this).stop().fadeTo(\"no
You can also use the addClass and removeClass methods to toggle between items such as tabs.
e.g.
if($(element).hasClass("selected")) $(element).removeClass("selected");