jquery - remove qtip when element is removed from dom -


i apply tooltip qtip2 via jquery .on event on mouseover, on img , div elements. elements need removed dom while qtip still showing, , removal not under control. result qtip stays there forever. how can remove qtip when associated element removed?

edit underlying elements not removed jquery's .remove() innerhtml=.. qtip2 automatic removal not working here.

as asking qtip2 way, here is. in qtip2-initialization, add this:

events: {     //this hide event remove qtip element body , assiciated events, leaving no dirt behind.     hide: function(event, api) {         api.destroy(true); // destroy     } } 

tested qtip 2.2.0. source


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -