I have a function that works with jQuery 1.8.3 but when I upgrade to 1.9.1 it's not working anymore, but there's no change in documentation. Does somebody know how to fix this?
$(document).on("hover", "#cart-left", function(){ $("#cart").addClass('active'); });
http://jsfiddle.net/michalcerny/R9HZp/
Thanks for support!
In 1.9.1 you should use mouseover
mouseover
$(document).on("mouseover", "#cart-left", function(){ $("#cart").addClass('active'); });
2.1m questions
2.1m answers
60 comments
57.0k users