jQuery simplifying code (beginner)
- by Jonny Wood
I'm getting to grips with jQuery but find myself repeating code over and over again...
Surely there's a simpler way to write this:
$('#more-mcr, #more-hilton, #more-lpool').hide();
$('#mcr-hatters').hoverIntent(function() {
$('#mcr-hilton').stop().animate({opacity: 0.4});
…