I am trying to accomplish of the task of displaying text below an image when you hover over it. I do not want to use the title attribute, because I want to be a
title
$(function() { $('.bar').css({opacity:0}); $('.foo').hover(function() { $('.bar').stop().animate({ opacity: 1 },'fast'); },function() { $('.bar').stop().animate({ opacity: 0 },'fast'); }); });