0

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?

3
  • Possible duplicate of: stackoverflow.com/questions/14418743/… Commented Jun 20, 2014 at 13:52
  • hello, the given solution doesn't work in my case Commented Jun 20, 2014 at 14:15
  • What specifically doesn't work? Have you tried attaching the .scroll() event to the .dataTables_scrollBody element? Commented Jun 20, 2014 at 14:36

1 Answer 1

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

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.