I am trying to trigger an scroll event using class element. I tried multiple scenarios but no good.
Below are types of events tried...
jQuery(function($){
$('[class="ag-body-container"]').bind('scroll',function() {
alert("hai");
});
});
$(document).ready(function(){
$(".ag-body-viewport-wrapper").bind('scroll',function() {
alert("hai");
});
});
$(document).on('scroll', '.ag-body-container', function(){
console.log('scroll happened');
});
$(function() {
$(".ag-body-container").on('scroll', function () {
console.log('scroll happened');
});
});
$(".ag-body-container").bind('scroll', function() {
console.log('Event worked');
});
Non of the above gives expected result.
