title: Bootstrap dropdown menu not working
body: <p>I am a jQuery beginner and am trying to get the hang of it by using the <code>Twitter-Bootstrap</code> dropdown feature, but nothing drops down when I click on the "Google" <code>li</code>. I was pretty confused about why it wasn't working so I just started throwing things into my own code from the code from the <a href="http://twitter.github.io/bootstrap/javascript.html#dropdowns" rel="nofollow">example dropdown</a> menu on the Bootstrap website. That would be the explanation for any code that seems superfluous.</p>
  
  <p>Here is my <strong><a href="http://jsfiddle.net/2aaNS/" rel="nofollow">jsFiddle</a></strong>.</p>
  
  <p>jQuery:</p>
  
  <pre><code>$(document).ready(function() {
      $('dropdown-toggle').click(function() {
          $(this).dropdown();
      });   
      $('li a').hover(function() {
          $(this).toggleClass("hover");
      });    
  });
  </code></pre>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="container"&gt;
      &lt;ul class="nav"&gt;
          &lt;li class="dropdown"&gt;
              &lt;a id="drop1" class="dropdown-toggle" data-toggle="dropdown" role="button" href="#"&gt;Google&lt;/a&gt;
              &lt;ul class="dropdown-menu" role="menu" aria-labelledby="drop1"&gt;
                  &lt;li&gt;
                      &lt;a href="www.google.com"&gt;Google&lt;/a&gt;
                  &lt;/li&gt;
                  &lt;li&gt;
                      &lt;a href="www.gmail.com"&gt;Gmail&lt;/a&gt;
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;
              &lt;a href="www.facebook.com"&gt;Facebook&lt;/a&gt;
          &lt;/li&gt; 
      &lt;/ul&gt;
  &lt;/div&gt; 
  </code></pre>
  
  <p>Why is the drop-down menu not working? </p>
  
  <p>Side question: I had my navigation menu <code>li</code>s styled so that when you hovered over each, the background color would not change but the text would become a lighter grey. After I linked to Bootstrap, hovering now changes the background color to white and the text color to blue. Why?</p>