I am trying to use jQuery to fire an event to scroll through a specific class of elements, for example:
$('body').on('scroll', '.overflow', function() { do stuff; });
However, do stuff never happens. I did a little experimentation, and it looks like the scroll event cannot be delegated using .on . (see http://jsbin.com/aJeDiru/2 for a test case).
Is there a way I can delegate it? Or is there a very good mind ™ why should it never be set up to delegate this way?
javascript jquery
futuraprime Sep 04 '13 at 21:17 2013-09-04 21:17
source share