Follow my CSS code:
.modal-body {
max-height: calc(100vh - 210px);
overflow-y: auto;
}
Follow JS code:
$('.modal-body').on('scroll', function () {
console.log('scroll y');
});
JS code is not working, is there any solution?
Follow my CSS code:
.modal-body {
max-height: calc(100vh - 210px);
overflow-y: auto;
}
Follow JS code:
$('.modal-body').on('scroll', function () {
console.log('scroll y');
});
JS code is not working, is there any solution?
I found the solution:
$('#minhaModal').on('shown.bs.modal', function(e) {
$('.modal-body').on('scroll', function() {
console.log('scroll y');
});
})