You're comparing two jQuery objects which are not equal, even if they contain the same DOM Element. To do the comparison, access the first (and presumably only) DOM Element in each one by using .get(0) or [0], then compare the actual DOM Elements.
- Richard On Sun, Aug 31, 2008 at 7:14 PM, Mahmoud M. Abdel-Fattah <[EMAIL PROTECTED]>wrote: > > I'm trying to select an image with two ways, here's a demo : > http://www.duettographics.com/index.php > > when I apply the img.hover, I made an if statement to check if this > image is current selected one, if so, it should doesn't apply the fade > effect, but it does !! > > What's problem with this !! >