Restaurant menu RRS feed

  • Question

  • User758697942 posted

    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 html and css but almost no experience with javascript. How can I build a similar design and script to the example above? Any tips are appreciated!

    Saturday, May 15, 2021 11:10 AM

All replies

  • User-939850651 posted

    Hi flixell,

    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?

    Best regards,

    Xudong Peng

    Monday, May 17, 2021 1:55 AM