Idea
I want to make website with navigation and I want it to have only one section visible at the time.
Visible section would be displayed when you click on certain button in nav bar.
Problem
I have tried doing this
$(document).ready(function show(){
document.getElementById(#showElement).style.display= "block";
})
Problem I'm having with this code is I can't check which button was clicked and determine which sections should get display:none;
I'm not even sure if this can be done and I can't imagine how would I do this.
I'm new to JavaScript and I need help, thanks in advance.