M
M
MegaPuxapb2017-08-10 04:23:44
JavaScript
MegaPuxapb, 2017-08-10 04:23:44

Two bootstrap menus in the header, how to close?

There are 2 menus in the header.
dd005dd535ad4b59bda4c53486fc844a.png

How to make it so that in the mobile version:
If the first menu is open, when you click on the second, the first one closes. And vice versa?
(so that only one menu can be active)

https://codepen.io/Xpycm2000/pen/ayWXxB

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2019-03-27
@Skajinet

It's in the documentation

A
Andrey Tokmakov, 2017-08-10
@NPC

So it's difficult, when you click on the menu, check for the presence of the "active" class for the second menu (or which one you add there when you open it) and remove it if it is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question