I\'m attempting to use the .on() from jQuery to catch a scroll event that is inside a tag.
so this was my solution:
As @Venar303 says, scroll doesn't bubble, thus binding to document will not work.
Use this:
$('#popup').on('scroll', function() {});
Instead of this:
$(document).on('scroll', '#popup', function() {});