brouille
brouille

Reputation: 335

Scrolling in jquery datatable

Hello how can i catch a scrolling event in jQuery datatable ?

I don't have a "bServerSide"

I have already tried :

$(".dataTables_scrollBody").scroll(function(){
    console.log("scroll");
});

$("#idOfMyTable").scroll(function(){
    console.log("scroll");
});

How can I accomplish this?

Upvotes: 0

Views: 901

Answers (1)

brouille
brouille

Reputation: 335

$('.dataTables_scrollBody').on( 'scroll', function (e) { 

is working, i just don't put it in my document ready...

Upvotes: 1

Related Questions