1

I am using the Bootstrap tooltip plugin as suggested in Adding custom class to tooltip

$('.tooltipped').tooltip({
    template: '<div class="tooltip foo-tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
});

However, I am using dynamic elements and so need to use it's delegated event functionality, as shown in How do I bind Twitter Bootstrap tooltips to dynamically created elements?

$('body').tooltip({
    selector: '.tooltipped',
    template: '<div class="tooltip thri-tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
});

Which then causes it to ignore the custom template... Why so?

Unfortunately I don't have the creds to comment on another post, so a new question it is...

Community
  • 1
  • 1
shooftie
  • 111
  • 1
  • 11

0 Answers0