Hi
I've got this markup (simplified):
<div class='item'>
<a> one link </a>
<a class='trash'><img src='trash.png'/></a>
</div>
I'm highlighting the div when the mouse enters, and showing the (otherwise hidden) 'trash' link (it's like a tiny trash bin) so the user can delete the link.
I can't use 'hover' effect, because I need them to be live events. So I'm doing mouseover and mouseout. This is the code:
$('div.link').live('mouseout', function(e){
console.log(e)
if(e.target == this){
$(this).removeClass('hover');
$(this).children('a.trash').fadeOut();
}
});
(mouse over does the exacto opposite).
The animation looks quirky though, what am I doing wrong?
Thanks so much!