在bootstrap模式弹出窗口向下滚动时,通过ajax加载内容

时间:2016-09-27 13:38:23

标签: php jquery bootstrap-modal

我想在向下滚动bootstrap模式弹出窗口时通过ajax加载内容。以下代码工作正常,没有弹出窗口。

$(document).scroll(function(){

    // Do other stuff
    console.log("Scroll down working properly!");
});

但我希望它在bootstrap模式弹出窗口中。但这对我不起作用。我的代码是:

$('.modal-body').scroll(function(){
    console.log("Scroll down working properly!");
});

如果有人有任何相同问题的经验,请分享。感谢。

0 个答案:

没有答案