Reputation: 3923
$(document).on('scroll','.archives_container',function(){
console.log("Hello World");
})
However, scrolling through the .archives_container
div doesn't seem to set off the handler. Why is this?
JsFiddle here: http://jsfiddle.net/VRP8t/
Upvotes: 0
Views: 37
Reputation: 74420
This could be a workaround: {not handling all scroll case :(}
$(document).one('mouseenter','.hello', function(){
$(this).on('scroll',function(){
console.log('scrolling');
});
});
Upvotes: 1