I have below html code to add dropdown in my webpage using bootstrap.
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
<button class="dropdown-item" type="button">Action</button>
<button class="dropdown-item" type="button">Another action</button>
<button class="dropdown-item" type="button">Something else here</button>
</div>
</div>
</div>
<script src="<?php echo base_url('assets/js/bootstrap.js'); ?>" type="text/javascript"></script>
<script src="<?php echo base_url('assets/js/jquery-3.2.1.min.js'); ?>"></script>
<link href="<?php echo base_url('assets/css/bootstrap.min.css'); ?>" rel="stylesheet" type="text/css"/>
<link href="<?php echo base_url('assets/css/bootstrap.css'); ?>" rel="stylesheet" type="text/css"/>
</body>
Running this code, All I am getting is gray color button, no dropdown on clicking button.
I am working with codeigntier framework and have added all js and css files in assets directory in project
Can please someone help with this?
Thanks a lot.
Note: I am able to use bootstrap for other controls on this page. Only dropdown seems to have an issue.