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

后端 未结 10 1958
醉话见心
醉话见心 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

    None of these answers helped me.

    In my case, I had a qtip on an element with a close button. The close button removed the element, so there was no reference point to remove the qtip after the element was removed.

    I thought $('.qtip:visible').remove() would work, but it somehow removed all of the qtips on the page, and not the single one that I wanted removed.

    I noticed that the visible qtip is given a class qtip-active, so what worked for me was:

    $('.qtip-active').remove();

提交回复
热议问题