I have a file structure where index.php head includes my JS file and JQ. The content in the index file is loaded with a php include tag to load wall.php due too some dynamic.
In wall.php i have a div with the id 'wrapper', I would like to detect scroll events in that div, however it doesn't seem to trigger.
This is my JQ
$(document).on('scroll', '#wrapper', function() {
alert('test');
});
(I have det document ready function - other JQ works)
Does somebody know why?