Reputation: 149
My jquery tooltips plugin working with thumbnails. After ajax call i adding new thumbnails. But i dont know how re-init code from this example: http://osvaldas.info/blog/elegant-css-and-jquery-tooltip-responsive-mobile-friendly
I changed $( document ).ready( function(){
to function show_tooltip(){
. Tooltips working fine. But after secong recalling from ajax tooltips are brokening.
How i can recall function or reset it and call again? Thanks!
Upvotes: 1
Views: 1109
Reputation: 171669
Whenever you insert new html you will need to attach the events handler for the tooltip to it. If you are inserting with AJAX, this would be done in success callback of ajax or within ajax page load event of mobile framework.
Upvotes: 0