I have a very long table. The first column of each one of the rows is an <a> tag. A click on an <a> tag does:
- Update
routeand pagereloads - Get data(list of objects) from server.
- Display the data below the
<a>tag - Hide data related to an another
<a>tag.
The length of the data differs from each other. At a time, I only show data related to one of the <a> tags. For instance, a click on the first <a> displays data related to it just after of it. A click on the second <a> shows data related to it and hides data related to the first <a>.
How to scroll back to the <a> tag you clicked on when route changes and page reloads?
If you answer, please no jQuery.