Ivan Juarez Ivan Juarez - 2 months ago 20x
jQuery Question

jquery tooltipster plugin, hide all tips?

if I have bound tooltipster to input elements and to a diferent elements like a div, is there a way I can hide all in a single call?

So far I know I can to this by hand with:

$('form input').tooltipster('hide');


It's simple, you just need to separate your selectors by comma:

$('form input, #mydiv').tooltipster('hide');

If you don't know exact elements that contain tooltipster you can use filter method:

$('*').filter(function() {
    return $(this).data('tooltipsterNs');