craigsworks.com - Support Forum

Full Version: How to destroy cached qtip and then recreate it
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have necessity to destroy a certain tooltip on hide.
To solve it, I use:

onHide: function()
{
$('#selector1, #selector2').qtip("destroy");
}

My problem is that after destroying a tooltip this is no longer available!
Trying to solve this problem I use prerender: false. Setting this attribute false, the tooltips will recreate in the future when necessary (am I doing wrong?).

But it does't work... result: my tooltip are destroyed for ever. Why qTip behaves in this way? I've setted prerender to false correctly.

I have real necessity to destroy tooltip because I'm using more #selectors associated to a tooltip (as you see: $('#selector1, #selector2, etc...').qtip [...] ). So I would free memory - after the tooltip is hidden - to avoid interferences.

What am I doing wrong?

Thanks for replies Smile
android, I'm not sure I understand.... destroy is used for the exact purpose you are trying to prevent, removing the tooltip permanently!
Reference URL's