My page has tabs and at the bottom of the page, there are additional buttons that act as a CTA to switch tabs. As of now, when you click the buttons, it switches to the correct tab, but it keeps you at the bottom of the page. I would like for the button to change tabs and scroll you to the top. I cannot do anchor links since I already have the buttons/cards linked to the correct tab.
We had a customer with the same issue about tabs and auto-scrolling to the top. Our team developed a quick and easy solution that involves changes to just one attribute and one script.
Here is a tutorial video that walks you through the process and includes the code on the next tab over!
If anyone has any questions please don’t hesitate to tag me!