I have a function which finds occurrences of a given string within an html table and highlights the row(s) in which that string are found (using an id which is attached to each row when the table is built by an agent call). My client would like to scroll the container div to the first instance of a highlighted tr tag. I can obtain the id, of course, but is there a way to cause the parent to scroll so that the table row in question will be visible in the scrollable area?
My html fragment looks like this:
The spreadcontainer div contains general data based on the output of the agent. The general output from the agent (the table) is written to the div tableoutput.
| Status | Definition | Action to be taken | Merchandise Disposition |