jquery - Bootstrap mobile menu instantly collapse back -


i need add mobile menu toggle 990px bootstrap v3.3.7.

this changes navbar breakpoint. when click menu button shows menu list instantly collapse back. menu doesn't stay open after button clicked.

how can menu stay open after button clicked?

@media (max-width: 990px) {     .navbar-header {         float: none;     }     .navbar-toggle {         display: block;     }     .navbar-collapse {         border-top: 1px solid transparent;         box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);     }     .navbar-collapse.collapse {         display: none!important;     }     .navbar-nav {         float: none!important;         margin: 7.5px -15px;     }     .navbar-nav>li {         float: none;     }     .navbar-nav>li>a {         padding-top: 10px;         padding-bottom: 10px;     } } 

from fiddle posted , should organize according bootstrap, , follow there guidelines.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -