In my HTML table, there is a thead and tbody sections, with an unpredictable number of rows in the tbody based on the array size.
This table has a max-height and can be scrolled. I want to be able to accurately calculate the new top and bottom rows displayed when scrolling.
Furthermore, I am looking to achieve this using only JavaScript without relying on jQuery.
Although I attempted to implement the solution provided in this question, it did not yield accurate results, sometimes miscalculating by 2-7 rows: Determine top row in html table