I have a table with rows. The table is in a div. A table is taller than a div, and so the div has a vertical scroll bar, and some rows in the table are in the invisible area of ββthe div. Things are good.
Then, through JavaScript, I look for some text that tells me which line it is on. If this line is not visible, I want to scroll through the div to show this line.
How to determine if this line is in the visible or hidden part of the div? Perhaps I will get it from a height calculation, but wondered if there is a simpler method.
source share