$(document).ready(function(){
// Hide all large images except the first one
$('#imageContainer img').hide().filter(':first').show();
// Select all thumb links
$('#thumbContainer a').hover(function(event) {
// Hide all large images except for the one with the same hash as our thumb link
$('#imageContainer img').hide().filter(this.hash).show();
},
function () {} // Because the hover method has a mouseout state we need to define too
);
});
This .js script works for a mouse over on an anchor tag. However, I would like this function to work on an entire div.
How do I change this part : .filter(this.hash).show();
to this : .filter(this.(id or unique name).show();
Thank you.
Take care.