title: Javascript/Navbar Dropdown Not Working With Twitter Bootstrap
body: <p>I'm trying to use the latest version of twitter bootstrap to create a navigation menu with dropdown links.  </p>
  
  <p>However, the dropdown doesn't work, and the collapsed navbar doesn't go back up.</p>
  
  <p>I'm assuming something in the javascript doesn't work, but I've double checked my hotlinks and they're all up and working.</p>
  
  <p>Here's what I have in my head: </p>
  
  <pre><code>    &lt;!-- Le Javascript --&gt;
  
  &lt;!-- Google Libraries for Charts and jquery --&gt;
  &lt;script type="text/javascript" src="https://www.google.com/jsapi"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;!-- Latest compiled and minified JavaScript for Bootstrap--&gt;
  &lt;script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"&gt;&lt;/script&gt;
  
  &lt;!-- sharethis javascript --&gt;
  &lt;script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;stLight.options({publisher: "be79498d-c866-4538-945f-677020fd645d", doNotHash: false, doNotCopy: false, hashAddressBar: false});&lt;/script&gt;
  
  &lt;!-- Pesonal javascript files --&gt;
  &lt;script src="../js/interactions.js"&gt;&lt;/script&gt;
  &lt;script src="../js/data-model.js"&gt;&lt;/script&gt;
  &lt;script src="../js/charts.js"&gt;&lt;/script&gt;
  
  &lt;!-- Le CSS --&gt;
  
  &lt;!-- Latest compiled and minified CSS for bootstrap --&gt;
  &lt;link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.4/yeti/bootstrap.min.css" rel="stylesheet"&gt;
  
  &lt;!-- Personal Style Sheet --&gt;
  &lt;link rel="stylesheet" href="../css/calculator.css"&gt;
  </code></pre>
  
  <p>I don't see any issues with this.  </p>
  
  <p>Here's the html for the nav.  It was copied and pasted from the bootstrap source docs.</p>
  
  <pre><code>&lt;nav class="navbar navbar-inverse"&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"&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="http://www.healthkismet.com"&gt;Health Kismet&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="http://www.healthkismet.com/formula-analyzer/"&gt;Formula Analyzer &lt;span class="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="http://www.healthkismet.com/formula-analyzer/how-to-use/"&gt;How To Use&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#"&gt;Suppliers&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="dropdown"&gt;
                    &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"&gt;Help &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                    &lt;ul class="dropdown-menu" role="menu"&gt;
                      &lt;li&gt;&lt;a href="#"&gt;Contact/FAQ&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="http://forums.healthkismet.com"&gt;Forums&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                  &lt;/li&gt;
                  &lt;li&gt;&lt;a href="http://blog.healthkismet.com/starting-supplement-business"&gt;Get Help With Your Formula&lt;/a&gt;&lt;/li&gt;
                  &lt;li class="dropdown"&gt;
                    &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"&gt;Blog &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;
                    &lt;ul class="dropdown-menu" role="menu"&gt;
                      &lt;li&gt;&lt;a href="http://blog.healthkismet.com"&gt;Company Blog&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a href="http://blog.healthkismet.com/topics/entrepreneurship"&gt;Entrepreneurship Articles&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>Not sure if it's something wrong with the bootstrap or if there's possible interference from other javascript files.  </p>
  
  <p>You can view the whole page here:  <a href="http://www.healthkismet.com/formula-analyzer/" rel="nofollow">www.healthkismet.com/formula-analyzer/</a></p>