I am currently facing a challenge with a table that is generated server-side and then appended to the view page (client-side). Since the table is not directly included in the DOM, I am using the StickyTableHeaders jQuery plugin to create a sticky header for the table. However, I am unable to access the table's class name because it is not actually printed on the page. I have attempted to target the selector using the following code:
var offset = $('.navbar').height();
$(".table").stickyTableHeaders({fixedOffset: offset});
Can anyone advise me on how to make my table's class name accessible to the StickyTableHeaders function?