title: bootstrap dropdown menu active class
body: <p>i am trying to create a nav bar by using bootstrap but when I redirect active class to dropdown menu, all the sub menus receive active class. I only want Project section to use active class</p>
  
  <pre><code>&lt;nav class="navbar navbar-default" role="navigation"&gt;
          &lt;div class="navbar-header"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" 
                   data-target="#example-navbar-collapse"&gt;
                   &lt;span class="sr-only"&gt;&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;/div&gt;
          &lt;div class="collapse navbar-collapse" id="example-navbar-collapse"&gt;
            &lt;ul class="nav navbar-nav"&gt;
               &lt;li&gt;&lt;a href="index.html"&gt;About&lt;/a&gt;&lt;/li&gt;
               &lt;li class="dropdown active"&gt;
                  &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;
                     Project &lt;b class="caret"&gt;&lt;/b&gt;
                  &lt;/a&gt;
                  &lt;ul class="dropdown-menu"&gt;
                     &lt;li&gt;&lt;a href="project.html"&gt;AAAA&lt;/a&gt;&lt;/li&gt;
                     &lt;li&gt;&lt;a href="#"&gt;BBB&lt;/a&gt;&lt;/li&gt;
                     &lt;li&gt;&lt;a href="#"&gt;CCC&lt;/a&gt;&lt;/li&gt;
                     &lt;li&gt;&lt;a href="#"&gt;DDD&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
               &lt;/li&gt;
               &lt;li&gt;&lt;a href="team.html"&gt;Team&lt;/a&gt;&lt;/li&gt;
               &lt;li&gt;&lt;a href="contact.html"&gt;Contact&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
         &lt;/div&gt;
      &lt;/nav&gt;
  </code></pre>