Last post May 17, 2021 01:55 AM by XuDong Peng
May 15, 2021 11:10 AM|flixell|LINK
Hey, I want to make a restaurant meny similar to this one (https://restaurangbleck.se/meny/) to be able to show the starters, mains, desserts and beverages by clicking different buttons. I have experience in
May 17, 2021 01:55 AM|XuDong Peng|LINK
According to your description, I think what you need is for the page to present different content when the user clicks on different buttons.
If this is the case, you could try to use the jquery
data attribute to point to different page content, define its click event in js, and get the data attribute value of the button to load the required page content.
For more details, you could refer to this similar case:
toggling same div with multiple buttons
But if this is not what you expected, could you describe your requirement in more detail?