I am using the following code from another thread and, for an unknown reason, I am getting the following error:
Uncaught TypeError: Object [object Object] has no method 'qtip'
Code:
$('.tooltip').each(function(){
$(this).qtip({
content: {text: $('#helptext_' + $(this).attr('id'))},
style: {classes: 'ui-tooltip-dark ui-tooltip-rounded'},
position: {my: 'left center',at: 'right center', viewport: $(window)}
});
});
Make sure you call the qtip.js
(or whatever) before you call that function, otherwise it won't be loaded by the time this code runs.