Problem with "scroll" event
Hello everyone!
I have problem with working
scroll event. I wrote this code:
- $(document).on('scroll', '.dialog_box', function(){
- console.log('testing');
- });
And when I scroll this element nothing happens.
I use
on method because originally there is no such element on the page.
By the way if instead of
scroll event I use
click event everything works perfectly.
Thanks a lot in advance for any help!