In my page I change one attribute of an element based on another attribute. Like this:
$("body").find("[data-action=new]").attr("data-original-title", "Create appointment");
Doing that, this element will display a tooltip with "Create appointment" text.
Like this I have any others.
The problem begin when I insert some elements via JS in my DOM.
There is any way to delegate this operation to avoid calling this every time I insert one element?
Update
I'm looking for a simple solution to setup my tooltips. The DOMObserver looks too heavy for use here. Or not?