title: why is dropdown not working in ejs file in node Project?
body: <p>I have included both javascript and bootstrap in my .ejs file in a nodejs project. The bootstrap css works on buttons(example btn btn-primary works) but the dropdown is not working.<br>
  //my index.ejs file  </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Home automation system&lt;/title&gt;
          &lt;script src="js/bootstrap.min.js"&gt;&lt;/script&gt;
          &lt;script src="js/myscript.js"&gt;&lt;/script&gt;
          &lt;link rel="stylesheet" href="/css/bootstrap.min.css"&gt;
          &lt;link rel="stylesheet" href="/css/mycss.css"&gt;
  
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="container"&gt;
              &lt;div class="test text-center" style="margin-bottom:0"&gt;
                  &lt;h1&gt;Home Automation system&lt;/h1&gt;
                  &lt;p&gt;The first Home Automation system in Bhutan&lt;/p&gt; 
              &lt;/div&gt;
              &lt;% include partials/navbar.ejs %&gt;
              &lt;br&gt;&lt;br&gt;
              &lt;div class="dropdown"&gt;
                      &lt;button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
                        Dropdown button
                      &lt;/button&gt;
                      &lt;div class="dropdown-menu" aria-labelledby="dropdownMenuButton"&gt;
                        &lt;a class="dropdown-item" href="#"&gt;Action&lt;/a&gt;
                        &lt;a class="dropdown-item" href="#"&gt;Another action&lt;/a&gt;
                        &lt;a class="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;
                      &lt;/div&gt;
                    &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;  
  </code></pre>
  
  <p>//app.js  </p>
  
  <pre><code>var express = require('express');
  var lightController = require('./controllers/lightController');
  
  var app=express();
  
  //set the template engine
  app.set('view engine', 'ejs');
  
  //link static files
  app.use(express.static('./public'));
  
  //to fire the controller
  lightController(app);
  
  //listen on port
  app.listen(3000);
  console.log('server running ...');
  </code></pre>
  
  <p>i have included the js and css folder extracted from bootstrap 4.3(downloaded) and included in the public folder. </p>