I tried this, but it doesn’t work.
Can anyone help me please? Thank you!
JS :
function thumbnail(param1){
$(param1).hover(
function() {
$(param1+' .color').hide().stop().fadeTo(500,'1');
},
function() {
$(param1+' .color').stop().fadeTo(500,'0');
}
);
};
$("div.thumb").each(function (){
var id = $(this).attr('id');
thumbnail(id);
});
The ID selector in jquery is
#someId.You should do this: