Answer the question
In order to leave comments, you need to log in
How to display hidden nav?
Good evening.
How to make hidden nav displayed on button? The button in this form does not work (I took an example here ):
<button class="navbar-toggler" aria-expanded="false" type="button" data-target="#sidebar" data-toggle="collapse" aria-controls="sidebar">
<span class="navbar-toggler-icon"></span>
</button>
<!--и ниже, не рядом есть nav-->
<nav class="col-xl-2 col-lg-3 col-md-4 col-sm-5 d-none d-lg-block bg-secondary sidebar" id='sidebar'>
</nav>
<button class="navbar-toggler" aria-expanded="false" type="button" data-target="#sidebar" data-toggle="collapse" onclick='document.getElementById("sidebar").classList.remove("d-none")'>
</button>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question