title: BootStrap navbar-collapse button is not work on clicking
body: <p>I'm new to bootStrap trying to create a navigation bar. I want the menu items to be shown in a dropdown list when the window size is resized below a certain level. My menu items do collapse on resizing the window but on clicking the navbar-collapse button no drop down list is shown.
  Any help is appreciated. I have commented the spot as "The following div doesn't open in the drop down menu" in code snippet where I'm having trouble</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  &lt;meta name="viewport" content="width=device-width, initialscale=1"&gt;
  &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
  &lt;!-- Bootstrap --&gt;
  
  &lt;!--&lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;--&gt; 
  
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"&gt;&lt;/script&gt; 
  
  
  &lt;style type="text/css"&gt;
   .my{
    background-color: #d3d3d3;
    border:solid grey;
   }
   
  &lt;/style&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
   &lt;div class="navbar navbar-default"&gt; 
    &lt;div class="container"&gt;
     &lt;div class="navbar-header"&gt;
      &lt;a href="" class="navbar-brand"&gt;MB's Website&lt;/a&gt;
      
      &lt;button type="button" class="navbar-toggle" datatoggle="collapse" data-target=".navbar-collapse"&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;/div&gt;
    &lt;!--The following div doesn't open in the drop down menu--&gt;
     &lt;div class="collapse navbar-collapse"&gt;
      &lt;ul class="nav navbar-nav"&gt;
       &lt;li&gt;&lt;a href=""&gt;Home&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href=""&gt;Services&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href=""&gt;About&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href=""&gt;Contact Us&lt;/a&gt;&lt;/li&gt;     
      &lt;/ul&gt;
      
     &lt;/div&gt; 
    &lt;/div&gt;
  
   &lt;/div&gt;
  
   &lt;h1&gt;Hello, world!&lt;/h1&gt;
  
   &lt;div class="row"&gt;
    &lt;div class="col-md-6 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-6 my"&gt;content&lt;/div&gt;
   &lt;/div&gt;
  
   &lt;div&gt;&lt;p&gt; &lt;/p&gt;&lt;/div&gt;
  
    
  
  
   &lt;div class="row"&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
   &lt;/div&gt;
  
  &lt;!-- jQuery (necessary for Bootstrap's JavaScript plugins) --&gt;
  &lt;script src="jquery-3.2.1.min."&gt;&lt;/script&gt;
  &lt;!-- Include all compiled plugins (below), or include individual files
  as needed --&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
  &lt;meta name="viewport" content="width=device-width, initialscale=1"&gt;
  &lt;title&gt;Bootstrap 101 Template&lt;/title&gt;
  &lt;!-- Bootstrap --&gt;
  
  &lt;!--&lt;link href="css/bootstrap.min.css" rel="stylesheet"&gt;--&gt; 
  
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"&gt;&lt;/script&gt;
  
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"&gt;&lt;/script&gt; 
  
  
  &lt;style type="text/css"&gt;
   .my{
    background-color: #d3d3d3;
    border:solid grey;
   }
   
  &lt;/style&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  
   &lt;div class="navbar navbar-default"&gt; 
    &lt;div class="container"&gt;
     &lt;div class="navbar-header"&gt;
      &lt;a href="" class="navbar-brand"&gt;MB's Website&lt;/a&gt;
      
      &lt;button type="button" class="navbar-toggle" datatoggle="collapse" data-target=".navbar-collapse"&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;/div&gt;
     
     &lt;!--The following div doesn't open in the drop down menu--&gt;
     
        &lt;div class="collapse navbar-collapse"&gt;
      &lt;ul class="nav navbar-nav"&gt;
       &lt;li&gt;&lt;a href=""&gt;Home&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href=""&gt;Services&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href=""&gt;About&lt;/a&gt;&lt;/li&gt;
       &lt;li&gt;&lt;a href=""&gt;Contact Us&lt;/a&gt;&lt;/li&gt;     
      &lt;/ul&gt;
      
     &lt;/div&gt; 
    &lt;/div&gt;
  
   &lt;/div&gt;
  
   &lt;h1&gt;Hello, world!&lt;/h1&gt;
  
   &lt;div class="row"&gt;
    &lt;div class="col-md-6 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-6 my"&gt;content&lt;/div&gt;
   &lt;/div&gt;
  
   &lt;div&gt;&lt;p&gt; &lt;/p&gt;&lt;/div&gt;
  
    
  
  
   &lt;div class="row"&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
    &lt;div class="col-md-1 my"&gt;content&lt;/div&gt;
   &lt;/div&gt;
  
  &lt;!-- jQuery (necessary for Bootstrap's JavaScript plugins) --&gt;
  &lt;script src="jquery-3.2.1.min."&gt;&lt;/script&gt;
  &lt;!-- Include all compiled plugins (below), or include individual files
  as needed --&gt;
  &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thankyou</p>