Your first method simply adds qTip to <body>
when you click the .clickme
button, although I donβt understand why it does not seem to be added, and then sometimes appears when you hover over it.
The second method uses the syntax from qTip 1.0 , but you included qtip 2 as a library in the fiddle. qTip 2 show API is very different.
The following should show a tooltip when you click a button.
JavaScript (jQuery)
$('.clickme').qtip({ content: 'Hello 2nd Test', show: 'click' });
source share