N
N
nurdus2018-06-07 23:49:07
Bootstrap
nurdus, 2018-06-07 23:49:07

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>

while making a crutch:
<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

1 answer(s)
G
Good UI, 2018-06-08
@you_web

This is the documentation of the third bootstrap, and you probably have the last one, the 4th is connected.
Here is the actual documentation bootstrap-4.ru/docs/4.1/components/collapse

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question