I\'m using the jquery-plugin qTip. What\'s the command to destroy all tooltips in my page ?
I tried:
$(\'.option img[title], span.taxonomy-image-link-al
qtip("destroy")
is buggy (version 2.1.1) and doesn't clear everything.
I found this as a proper workaround:
// don't call destroy if not needed
if (element.data("qtip")) {
// the 'true' makes the difference
element.qtip("destroy",true);
// extra cleanup
element.removeData("hasqtip");
element.removeAttr("data-hasqtip");
}