Need help with events.
I don’t understand why this doesn’t work
$('#DataTables_Table_0').on( 'page.dt', function () {
alert( 'Table paged' );
});
});```
If I actually go to the chrome inspector and in the console run
```jQuery(('#DataTables_Table_0').on( 'page.dt', function () {
alert( 'Table paged' );
} );```
Then the code works and the event is captured.
What am I not understanding?