First, the disclaimer- I'm JUST starting out with jQuery. I apologize for my ineptness. :)
My issue is that I'm attempting to use a jQuery rollover effect on a bunch of separate elements on a page. Right now, when I mouse over one, they all do the effect at once because they have the same class name, and jQuery is selecting all of them. I know I could use a different name for each, and write a separate bit of jQuery for each class, but is there a better way? I plan on having many of these elements.
Anyway, a picture is worth a thousand words. Check out the source of my test page here: Click Here Mouse over the 'test' images. I want the effect to just apply to the one you mouse over.
Here's my novice jQuery:
$(document).ready(function(){
$('.box').hover(function() {
$('.rollover').fadeIn('slow');
$('.description').fadeIn('fast');
});
$('.box').mouseleave(function() {
$('.rollover').fadeOut('slow');
$('.description').fadeOut('fast');
});
});