Hi, I'm having issues applying a tooltip to a dynamic DOM element. Here is my scenario:
Below is a basic example of how I am trying to apply the tooltip to my newly created elements. Again, all I get is an empty tooltip. Thanks for your help!
- Ajax request is made.
- Data received is then generated into new dom elements on my page.
- I attempt to apply a tooltip to one of those newly created dom elements, but I'm getting an empty tooltip.
Below is a basic example of how I am trying to apply the tooltip to my newly created elements. Again, all I get is an empty tooltip. Thanks for your help!
$("span.XYZ").each(function () { var tooltipManager = $find("ctl00_main_RadToolTipManager1"); var tooltip = tooltipManager .getToolTipByElement(this); if (!tooltip) { tooltip = test.createToolTip(this); tooltip.set_contentElement("<span>abcd</span>"); //tooltip.updateLocation(); } //this.onmouseover = null;});