Home Forums WoodMart support forum How to scroll to a certain tab on the same page on click of a button?

How to scroll to a certain tab on the same page on click of a button?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #602876

    zhufan122881
    Participant

    Hello
    I made a button on the product page. I hope that clicking the button will scroll the page to the coupon tab. This tab is included in the “product tab” component. What should I do?
    I tried copying the “href” of the coupon tab into the button link, but if other tabs are opened, such as “description”, they will not scroll over. Only when the “coupon“” tab is open, clicking the button will scroll to it. What is the correct approach?
    Thank you!

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)