This works ( .hover
):
$('a.directory:not(.trashContent), a.file:not(.trashContent)').hover(function() {
if (!dragged) $(this).find('a.suppr:first').show();
}, function() {
$(this).find('a.suppr:first').hide();
});
And this does not work ( .live('hover')
):
$('a.directory:not(.trashContent), a.file:not(.trashContent)').live('hover', function() {
if (!dragged) $(this).find('a.suppr:first').show();
}, function() {
$(this).find('a.suppr:first').hide();
});
Any idea why?