I have been filtering my way through jQuery tooltip plugins and have found tipsy. It is used by GitHub, that was what I based most of my decision on. I really like it and it is really easy to use.
I am having a problem with it though. I need the tooltip to fade in on focus, not hover. It currently works but only on hover. Here is my current code:
$('input.tip').tipsy({trigger: 'focus', gravity: 'w', fade: true});
With or without trigger: 'hover',
makes no difference. I read the docs thoroughly so it is correct code.
It is not to do with the HTML/CSS, I know that for a fact. Because it already works, just not on focus.
I am using jQuery v1.4.4.
Any suggestions would be much appreciated, thanks.
Resource: http://onehackoranother.com/projects/jquery/tipsy/
I just had the same problem. And I'm also using Blueprint's CSS framework. Although it might very well have something to do with it, the core difference here is the version that Day was using: he was importing version 1.0.0a from GitHub, whereas we were (I was) using version 0.1.7.
Hooking up Day's example to Tipsy's v0.1.7 causes the same problem.
The new version did the trick for me.
You probably haven't entered TITLE for the tag.
The plugin works for me in a simple test case based on the code you provide. Are you sure there is nothing in the additional code of your page that could be causing this to go wrong?
My simple test case pulls in the tipsy plugin from github. jsfiddle.net adds some extra stuff, but the important bits can be reduced to the following HTML which works when I test it:
I tested in Firefox 3.6 and Chrome 8, both on Linux.