Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Tooltips stop working after DOM Manipulation

Hello, I have an kanban-like application and when a user clicks a sorting icon, my jquery code gathers up all of the elements in that column into an object, then removes them from the DOM. Then I sort that object, iterate over it with each() and prepend each element back to the page. After doing this, the tooltips no longer work.

I tried destroying and re-creating them, like I do after bringing in ajax content, but that didn't work.

This is my code for re-creating tooltips:

Tipped.init(); // Destroy tooltips
Tipped.create('.simple-tooltip', {size: 'large', behavior: 'sticky'}); // Initialize Tooltips

Any ideas?

Thanks!

Comments

Sign In or Register to comment.