Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap Dropdown

I can't get this bootstrap dropdown code to "dropdown".

I am running this in a MEAN (angular js) environment.

The html works perfectly, but there is no "dropdown" element to it. enter image description here

<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown">Change Customer<span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#!">Customer</a></li>
<li><a href="#!">Customer</a></li>
<li><a href="#!">Customer</a></li> 
</ul>
</li>

Why does the dropdown functionality not appear?

like image 255
CMS Avatar asked Sep 16 '26 06:09

CMS


1 Answers

It's because you did not included Bootstrap javascript

add this at the end of your body section

<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
like image 157
Programmer Avatar answered Sep 18 '26 18:09

Programmer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!