stevenbenner / jquery-powertip

:speech_balloon: A jQuery plugin that creates hover tooltips.
https://stevenbenner.github.io/jquery-powertip/
MIT License
821 stars 137 forks source link

Apply powertip to dynamically created elements? #179

Closed seabasss closed 2 years ago

seabasss commented 4 years ago

Hi,

Is it possible to apply powertip to all elements with the powertip class: already created elements or dynamically created ones? Something similar to:

$(document).powerTip('.tooltip', {});

or

$(document).on('mouseover', '.tooltip', function(e) {
  $(this).powertip({});
});
seabasss commented 4 years ago

Any ideas for this? Thanks!

stevenbenner commented 2 years ago

This feature has been on the to-do list for a very long time. See issue #33.

There are a couple workarounds in the discussion for that issue, but live mode (a.k.a. event delegation) is still not something that PowerTip supports. So for now there isn't a built-in way.

Closing this issue as a duplicate of #33.