calebjacob / tooltipster

A jQuery tooltip plugin
MIT License
2.76k stars 480 forks source link

Generally enable tooltipster for all elements #772

Closed froschi123 closed 5 years ago

froschi123 commented 5 years ago

Hi, i have a more or less "done" web application with lots of pages and code lines. I would like to make use of tooltipster, but it would be a lot of work to add the tooltipster class name to all of the elements in my code, and there is a risk that i miss some elements at the end.

So my question is, if there is a way to generally use tooltipster for all elements without giving a special class to an element.

macmessa commented 5 years ago

You could apply Tooltipster to all elements having a title attribute. Like this:

$('[title]').tooltipster();