Scroll to the tab selected


#1

I have tab that scrolls horizontally in my application as in below image.

My page navigates based on selected tab index. But i couldn’t view the tab button of the selected index on page load. Please tell me how to make the page scroll automatically to the selected index on page load as in the second image.


#2

I have the same problem. Did you find any solution?


#3

You need to get element id and use document.getElementById(‘id’).scrollIntoView() for scrolling.