function initTipsy(){ $(function(){ $('.tips').tipsy({gravity: 's',html: true}); }); $(function(){ $('.tips-right').tipsy({gravity: 'w',html: true}); }); $(function(){ $('.tips-left').tipsy({gravity: 'e',html: true}); }); $(function(){ $('.tips-bottom').tipsy({gravity: 'n',html: true}); }); }
I have this function that I call in my main.js, which works for my entire project. This allows me to add tooltips to any static element. I had the same problem with dynamic elements, and the solution I found was to call initTipsy again after adding a new element to html. I know this is not a good solution, but it works for sure. Hope that helps someone.
source share