Friday 15 February 2013

jquery - Javascript DOM elements invalid CSS -


I have a tooltip plugin (tooltip.js and tooltip.css). The need for this tooltip is that you need both rel = 'tooltip' and title = '' inside the SPAN or DIV element - the tooltip will take care of the plugin tooltip.

The problem is that I add 'DOM HTML Elements to the page with those features but they are not working. They work initially but when I add the DOM element, those DOM elements stop working.

Using FYI I (Jaguari Mobile 1.3.1 and jQuery 1.9.1)

HTML

  & lt; Table ID = 'Maintenance' & gt; & Lt; / Table & gt;   

JAVASCRIPT

  // starts with this content part1 = "& lt; tr & gt; & lt; td rel = 'tooltip 'Title =' new title '& gt; some & lt; / td & gt; & lt; / tr & gt; "; . $ ('# Maintable') Attached (part1) .trigger ('create');   

What am I doing wrong? Why is not it starting? FYI. Trigger ('Refresh') does not work

change it

  targets.bind ('mouseenter', function ()   

to

  $ (document) .on ('mousecenter', target, function () {  

And more

  target.bind ('mouseleave', remove_tooltip); tooltip.bind ('click', remove_tooltip)  

$ (document) .on ('mouseleave', target, remove_tooltip); $ (document).;

and replace the document in your code, with the closest constant ** (never deleted or changed) ** element element. < P> it The dynamic elements will give the event to the delegation and will still allow the code to be executed.

No comments:

Post a Comment