javascript - bootstrap navbar doesn't toggle -
when try mobile version of jumbotron-based page, navbar doesn't toggle. want fold out in the example doesn't. maybe i'm missing code, can me make work? screenshot how supposed when navbar folds out in [the example.
this my page, based on jumbotron navbar foldout doesn't work when press button upper right, doesn't toggle.
my code (identical example).
<nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">customer service</a> </div> <div id="navbar" class="navbar-collapse collapse"> <form class="navbar-form navbar-right" action="/account/do_login" method="post"> <div class="form-group"> <input type="text" name="email" placeholder="email" class="form-control"> </div> <div class="form-group"> <input type="password" name="password" placeholder="password" class="form-control"> </div> <button type="submit" class="btn btn-success">sign in</button> </form> </div> <!--/.navbar-collapse --> </div> </nav>
please try check bootstrap.min.js or bootstrap.js. may not loading properly.
Comments
Post a Comment