3

like here written I have a problem with jQuery mCustomScrollbar. Binding the scrollbar at the first load works fine.

$("#contenDiv").load("dummytext.php", function() {
   $("#contenDiv").mCustomScrollbar({
        theme: "light",
        alwaysShowScrollbar: 1
      });
 });

But when I reload the Divs content the mCustomScrollbar disappears, althougt I call the "update" method.

$("#loadbutton").click(function() {
    $("#contenDiv").load("dummytext.php", function() {
        $(this).mCustomScrollbar("update");
    });
});

I've also been trying to work with on() and delegate() methods but they don't recognize the jquery Ajax load() event.

Can anyone help me?

2
  • I am facing the same issue. Did you find a fix for your problem? Mar 5, 2015 at 14:31
  • if you solved the issue, please update Apr 14, 2016 at 6:13

0

Your Answer

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

Browse other questions tagged or ask your own question.