I am working on a website for a restaurant that has a header with the following tabs:
- "home"
- "menu"
- "about"
I want to switch between the tabs while staying in the same page, but only changing the contents of it according to the chosen tab.
I managed to do that with jQuery by hiding <div>
s and showing the one I want by adding and removing classes. The problem is that whenever I refresh the page it returns to the main home page that are set to show when page is loaded.
So my question is: is there a way to make the webpage refresh with the changed classes made???