title: Why isn't the collapsed view button working on my navbar?
body: <p>Bootstrap provides the following code to use as a navbar. However, when I simply paste in their code without altering it, the collapsed view doesn't work. As you resize your browser window towards more narrow, the navbar turns into a button that you can click to show all the nav components again. However, it doesn't seem to be working when I simply paste in their code. Anyone know why? The nav components do get collapsed, but clicking the button to show them doesn't do anything.</p>
  
  <pre><code>&lt;nav class="navbar navbar-default"&gt;
    &lt;div class="container-fluid"&gt;
      &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
      &lt;div class="navbar-header"&gt;
        &lt;button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"&gt;
          &lt;span class="sr-only"&gt;Toggle navigation&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
          &lt;span class="icon-bar"&gt;&lt;/span&gt;
        &lt;/button&gt;
        &lt;a class="navbar-brand" href="#"&gt;Brand&lt;/a&gt;
      &lt;/div&gt;
  
      &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
      &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
        &lt;ul class="nav navbar-nav"&gt;
          &lt;li class="active"&gt;&lt;a href="#"&gt;Link &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;Link&lt;/a&gt;&lt;/li&gt;
          &lt;li class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Dropdown &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
              &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
              &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;One more separated link&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
        &lt;form class="navbar-form navbar-left" role="search"&gt;
          &lt;div class="form-group"&gt;
            &lt;input type="text" class="form-control" placeholder="Search"&gt;
          &lt;/div&gt;
          &lt;button type="submit" class="btn btn-default"&gt;Submit&lt;/button&gt;
        &lt;/form&gt;
        &lt;ul class="nav navbar-nav navbar-right"&gt;
          &lt;li&gt;&lt;a href="#"&gt;Link&lt;/a&gt;&lt;/li&gt;
          &lt;li class="dropdown"&gt;
            &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;Dropdown &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
            &lt;ul class="dropdown-menu"&gt;
              &lt;li&gt;&lt;a href="#"&gt;Action&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Another action&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
              &lt;li role="separator" class="divider"&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;Separated link&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;&lt;!-- /.navbar-collapse --&gt;
    &lt;/div&gt;&lt;!-- /.container-fluid --&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;?php include('config/setup.php'); ?&gt;   
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;    
  
      &lt;head&gt; 
          &lt;meta charset="utf-8" /&gt;
          &lt;title&gt;Search Hound&lt;/title&gt;
  
          &lt;!--This enables the website to be mobile first--&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  
          &lt;?php include('config/js.php'); ?&gt;
  
          &lt;?php include('config/css.php'); ?&gt;
  
  
  
      &lt;/head&gt;
  
      &lt;body&gt;
  
          &lt;?php include('template/navigation.php'); ?&gt;
  
          &lt;div class="container"&gt;
           &lt;form class="form-inline" align="center"&gt;
  
          &lt;!-- Section to type question--&gt;
              &lt;div class="form-group" style="display:block"&gt;
                  &lt;textarea class="form-control" style="width:100%" rows="5"&gt;&lt;/textarea&gt;
              &lt;/div&gt;
  
          &lt;!--Section to add money--&gt;
              &lt;div class="input-group" id="AddMoney"&gt;
                &lt;span class="input-group-addon"&gt;$&lt;/span&gt;
                &lt;input id="EnterMoney" type="text" class="form-control" onkeypress='validate(event)' aria-label="Amount (in dollars and cents)"&gt;
              &lt;/div&gt;
  
          &lt;!--Section to add file--&gt;
              &lt;div id="AddFile"&gt;
                  &lt;a href="#" onclick="document.getElementById('uploadFile').click(); return false;"&gt;Add File&lt;/a&gt;
                  &lt;input type="file" id="uploadFile" style="visibility: hidden;" /&gt;
              &lt;/div&gt;
  
              &lt;div id="imagePreview"&gt;&lt;/div&gt;
  
          &lt;!--Section for the Submit button--&gt;
              &lt;div&gt;
                  &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
              &lt;/div&gt;
          &lt;/form&gt;
          &lt;/div&gt;
          &lt;!-- /container --&gt;
  
      &lt;div
  
      &lt;/body&gt;
  
      &lt;?php include('template/footer.php'); ?&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>config/js.php</strong></p>
  
  <pre><code>&lt;!-- Latest compiled and minified CSS --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"&gt;
  
  &lt;!-- Optional theme --&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css"&gt;
  
  &lt;!-- Latest compiled and minified JavaScript --&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"&gt;&lt;/script&gt;
  </code></pre>