dotmaster/Touchable-jQuery-Plugin — Issue #5: Does Not Work With Dynamically Created Elements
Author: metalhaze
Created: 2012-02-03 16:32:49+00:00
State: open

If the element if loaded at the same time the DOM is loaded then your script recognizes the element you are targeting and it works.

If you add an element to the DOM dynamically, your script does not recognize the element.

I tried binding 'newHover' to the live() function but it didn't work.

var t3 = $('.touchMe').Hoverable({disableHover:true, logging:true});
t3.live('newHover', function(e, touch){ //hoverIN
$(this).remove(); -- (For testing purposes)
}, function(e, touch){//hoverOut
$tooltip=$(this).find('.tooltip');
$tooltip.hide();
});

Am I missing something??