Button open a panel within a tabs element AND scroll to it

Would it be possible to have a button element scroll down to a tabs element.

I’ve added a toggle hash to the tab and when I click my button it does open the tab but I also was it to anchor to that and scroll the page down to that element.

Please advise, thank you

Hello Luke,

Thanks for writing in! Scrolling to a section within a page uses a link anchor. The Tabs element is using attributes. regretfully what you are trying to do requires custom JS to be able to accomplish it. Be advised that custom JS coding is beyond the scope of our support under our Support Policy. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.

Best Regards.

Hi Ruenel,

No worries, got there myself in the end using the #link and toggle hash feature on the tabs along with this JQuery.

$(".button-container-class a").click(function() {
$('html,body').animate({
    scrollTop: $(".section-to-scroll-to").offset().top},
    'slow');
});

Hope this can help others who had similar trouble.

Hi Luke,

Glad that you are able to find the solution and share it with others.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.