I'm having some trouble with the scroll event.
I'm trying to attach/bind the event to a specific div,
and I'm using $('body').on()
to do it, due to the fact that
the content is reloaded when sorting, so it will lose its binding.
This doesn't work, the event is not fired:
$('body').on('scroll', 'div.dxgvHSDC + div', function () {
}
This on the other hand works:
$('body').on('mousewheel DOMMouseScroll', 'div.dxgvHSDC + div', function () {
}
And this as well:
$('div.dxgvHSDC + div').on('scroll', function () {
}
What's the problem?