qTip (jQuery plug-in) how can I remove all qtips in my page?

后端 未结 10 1915
醉话见心
醉话见心 2021-02-04 00:30

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         


        
10条回答
  •  不知归路
    2021-02-04 00:54

    I experienced that the api-call

    $(selector).qtip('destroy')
    

    doesn't remove all qtip-data dependably, especially when using several qtips simultaneously.

    In my case I had to remove a visible qtip and successfully used this workaround:

    $(selector).removeData('qtip');
    $('.qtip :visible').remove();
    

提交回复
热议问题