0

I am working on an application where i have some data tables listed one by one on a lengthy page (I know this it's a bad user experience, but this is my requirement).

There is an option to create a customer for one of a data table.

Issue: When i click the add button, the page scrolls to the top, which confuses the user by not letting which data table he made the changes.

I know this will do,

$('html, body').scrollTop( $(document).height() );

Any workaround other than this, to stay back on the same location where the data-table resides? or is the browser's default behavior? This is happening in all the browsers.

Note: I am not refreshing the page.

Sergio Tulentsev
  • 219,187
  • 42
  • 361
  • 354
steeve
  • 629
  • 3
  • 9
  • 18

0 Answers0