title: Why is my Bootstrap collapse navigation bar does not work?
body: <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;!-- Latest compiled and minified CSS --&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"&gt;
      &lt;!-- Optional theme --&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"&gt;
    &lt;/head&gt;
  
    &lt;body data-spy="scroll" data-target="#my-navbar"&gt;
  
      &lt;!--Start of the navbar section--&gt;
      &lt;nav id="my-navbar" class="navbar navbar-default navbar-fixed-top"&gt;
        &lt;div class="container"&gt;
  
          &lt;div class="navbar-header"&gt;      
            &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"&gt;
              &lt;span class="glyphicon glyphicon-align-justify"&gt;&lt;/span&gt;
            &lt;/button&gt;
  
            &lt;div class="navbar-brand"&gt;Lorem Ipsum&lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div id="navbar-collapse" class="collapse navbar-collapse"&gt;
            &lt;ul class="nav navbar-nav"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Lorem Ipsum&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Lorem Ipsum&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
            &lt;ul class="nav navbar-nav navbar-right"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Lorem Ipsum&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/nav&gt;
      &lt;!--End of the navbar section--&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The code is working fine and I have read through the bootstrap manual and don't see any errors in my class names, but when I collapse my browser window to a phone view the button doesn't seems to work and it doesn't drop down the navbar as expected.</p>