List.js library, can the page goto an anchor after sorting?

129 Views Asked by At

I am using the List.js library to search and sort a <table> element. The table resides in the main content area of the page after the header, navigation menu, and sidebar. When I sort any of the sort-able columns in the table, the page reloads and jumps back to the top of the page. This is expected, but I am trying to find a way around this so that after the page reloads, it scrolls back to the start of the <table> element (or to an anchor I place there). I basically would love if the page didn't move at all after sorting a column. I have looked through List.js's documentation, but to no avail. Maybe someone out there has used List.js extensively and knows a work-around for this situation. I have the page up on my staging site right now if anyone wants to check out the problem: http://www.tomclark.info/staging/cca/find-an-acupuncturist.html

0

There are 0 best solutions below