For example, after using AJAX, I\'ll have a scrollable DIV. How to bind scroll events to it?
I\'ve tried:
$(window).on(\"scroll\", \".mydiv\", functi
element must be exists in document before you use jquey.on().
you can insert dummy before you use jquery.on()
$('body').append(''); $(document).on("scroll", ".mydiv", function(){...})