I am currently developing a basic application that presents a table based on chosen features and companies for user comparison. Utilizing Bootstrap 3, I have encountered challenges implementing DataTables due to the code structure. My aim is to achieve a floating table header, and I have experimented with various solutions involving JavaScript, jQuery, and CSS modifications on both the table header and tbody scrolling.
The issue arises from the fact that my code regenerates the table each time a user modifies their selections. As a novice in web development, this particular aspect has proven to be quite perplexing. Any guidance on resolving this matter would be greatly appreciated! Thank you in advance!
Accessible demonstration: