DEV Community

natalie stroud
natalie stroud

Posted on

Navbar dropdown doesn't work

I'm back! (hours later, lol)

This time I have a dropdown in my navbar that doesn't work. I've been on a bootstrap spree today and was trying to create a dropdown in my navbar that shows the various days. I went back and dissected the code to see if maybe I took something out that should've stayed in but nothing jumps out (to my knowledge).

Thanks in advance to those who give feedback! :)

Top comments (2)

Collapse
 
rmirandasv profile image
Ronald • Edited

Hi! You need to add jquery and popper before include Bootstrap js add:

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>

Then Bootstrap js.
:)

Collapse
 
nataliecodes profile image
natalie stroud

That worked! :D Thank you so much!!