I know these type of questions have been asked previously here, but their solution does not work in this case. In my bootstrap website, when I press/touch menu button, it opens.. But does not close when I again press/touch it.
Here is the code of my menu button:
<div class="navbar-header">
<!-- Logo Starts -->
<a class="navbar-brand" href="index.php"><img class="img-responsive" src="images/logo.png" alt="logo"></a>
<!-- #Logo Ends -->
<!--menu button for mobile view start -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--#menu button for mobile view end -->
</div>
I have already gone through these solutions:
I have attached these 2 files at the at bottom part of my hmtl file:
- https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
- https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js
I have also tried jquery 2.1.3 file. That also doesn't work.
Can anybody please solve this issue ? I cannot really find what is the problem with this code. Thank you.