We call a .live() method like this:
$('.link').live('click', loadContent);
But what about if I'm binding to hover instead, which calls for two functions separated by a comma? When I put in this:
$('.thumb.dim').live('hover', function(){$(this).removeClass('dim');}, function(){$(this).addClass('dim');});
The mouseenter event does trigger the first function above (removeClass('dim')), but on mouseleave nothing happens. Is there a correct way to write this?