title: Bootstrap 3 drop down menu not working
body: <pre><code>&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;a href="index.php" class="navbar-brand"&gt;Mudalali | Sidadiya.lk&lt;/a&gt;
      &lt;/div&gt;
  
      &lt;div class="navbar-collapse collapse"&gt;
          &lt;ul class="nav navbar-nav" id="top-nav"&gt;
              &lt;li&gt;&lt;a href="#section-home"&gt;Home&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#section-about"&gt;About&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#section-service"&gt;Services&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#section-contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
              &lt;li class="dropdown"&gt;
        &lt;a href="#" class="dropdown-toggle" data-toggle="dropdown"&gt;Dropdown &lt;b class="caret"&gt;&lt;/b&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 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;?php echo $loginLink; ?&gt;            
         &lt;!-- &lt;a href="#" class="btn btn-primary pull-right"&gt;Registe1r&lt;/a&gt;
          &lt;a href="#" class="btn btn-success pull-right" data-toggle="modal" href="#loginModal"&gt;Login&lt;/a&gt;--&gt;              
  </code></pre>
  
  
  
  <pre><code>&lt;/div&gt;
  </code></pre>
  
  <p> </p>
  
  <p>I placed this code in a seperate file not in index.php (i.e. root/PHP_INCLUDES/header.php). </p>
  
  <p>I would be happy if someone can help me to find the error .</p>
  
  <p>Thanks in advance</p>