I have a
that is populated with javascript after the initial page load. I\'m currently using .bind
with mouseover
and
I'm not sure what the rest of your Javascript looks like, so I won't be able to tell if there is any interference. But .hover() works just fine as an event with .on().
$("#foo").on("hover", function() {
// disco
});
If you want to be able to utilize its events, use the returned object from the event:
$("#foo").on("hover", function(e) {
if(e.type == "mouseenter") {
console.log("over");
}
else if (e.type == "mouseleave") {
console.log("out");
}
});
http://jsfiddle.net/hmUPP/2/