I am completely new to Javascript and I have a question regarding how to achieve a specific functionality. I have 3 image buttons and I want to create a scenario where clicking on each button displays a different div while hiding the previous one. Essentially, I want it to function like tabs on a website - when you click on one tab, its content is displayed, and when you click on another tab, the previous content disappears and the new content is shown in its place.
Any tips or advice on how to implement this would be highly appreciated.