I have a document where a content of a table is loaded within container with AJAX.
I need to apply styling to the table, and although my JS is within
$(document).ready(function() {
});
it appears I am still unable to apply the CSS to the table. Is there a way to add some listener to do it after the table is loaded?
UPDATE:
Fixed it with running function after delay
setTimeout(function() {
$('.myElement').addClass('myClass');
}, 1000);