I just downloaded jQuery Tools today and thought I'd try and do some tooltip magic. I'm trying to register a tooltip to pop up whenever the user clicks on a mailto: link. But so far, it seems to want to pop up by hovering only. I tried messing around with the events:{} options to no avail. Anyone have any thoughts? Here's my registration code:
$('a[href^=mailto:]').live('click', function(clickEvent){clickEvent.preventDefault();});
$('a[href^=mailto:]').tooltip({
// place tooltip on the right edge
position: "center right",
// a little tweaking of the position
offset: [-2, 10],
// use the built-in fadeIn/fadeOut effect
effect: "fade",
// custom opacity setting
opacity: 0.7,
// use this single tooltip element
tip: '.tooltip',
event:{def:'click'}
});
