I'm using qtip ( http://craigsworks.com/projects/qtip/ ) to make tooltips. Now I need to show tooltips when button is pressed and hide tooltips for example when 3 seconds has passed. My current code is not working, tooltips will sometimes go away and sometimes stay...
var self = $("#email");
self.qtip( {
content: error,
tip: true,
position: { corner: { target: 'rightMiddle', tooltip: 'leftMiddle' } },
style: 'error',
show: { when: false, ready: true },
hide: { when: { event: 'mousemove' }, delay: 2000, effect: function() { self.qtip("destroy"); } }
} );