Is it possible to create a navigation bar with 5 buttons using CSS and JS? Here is what I am looking to achieve:
- Display 5 nav/button options
- When a user clicks on a button, the other buttons should transition or hide, leaving only the selected button visible
- Clicking on the selected button should display all the buttons/options again
I have tried searching for a solution everywhere but haven't found one yet. Thank you for your help!
Here is my current HTML code:
<div class="analytics_buttons">
<input class="form-btn" type="button" name="btn1" Value="Option 1" />
<input class="form-btn" type="button" name="btn2" Value="Option 2" />
<input class="form-btn" type="button" name="btn3" Value="Option 3" />
<input class="form-btn" type="button" name="btn4" Value="Option 4" />
<input class="form-btn" type="button" name="btn5" Value="Option 5" />
</div>