so I'm using qtip for a super simple tool tip implementation.
I'm not including qtip on every page, only the pages that needed, so I'm trying to check for qtip's existence before calling it.
/*
* Tool Tip
* inits qtip on any link with class="tt"
*/
if( $.isFunction( $.qtip ) ){
$(".tt").qtip();
}
I've no idea what this isn't working. it's always returning false. Any ideas? Thx.
IMO, you should check
if($.isFunction($.fn.qtip))
try this:
if( $.isFunction( $.fn.qtip ) ){
$(".tt").qtip();
}
as plugins reside in the $.fn
object
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With