Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get jquery Tooltipster Plugin to work for newly created DOM elements?

I'm using the Tooltipster plugin http://calebjacob.com/tooltipster/ which is great but I have dynamically generated content that's being inserted into the DOM. It doesn't seem like tooltipster is detecting those as it's being set to trigger on Document Ready.

I know this is a bit of an esoteric plugin but any ideas on how to get the plugin to work for newly created elements in the DOM?

Thanks

like image 963
Phillip Chan Avatar asked Oct 20 '22 23:10

Phillip Chan


1 Answers

Try this one

$(document).on('mouseover', '.ololo', function(event) { $(this).tooltipster({multiple:true}); });

like image 91
RustyDrill Avatar answered Oct 23 '22 18:10

RustyDrill