I want to have a very simple navigation menu. It has to be clickable. So when using this code
Why not simplify it to:
$("#navBtn").click(function() { $("#navContent").toggle(); });
#navContainer { position: relative; display: inline-block; } #navContent { display: none; } #navContent button { display: block; }
Menu 1 2 3 4