Skip to content Skip to sidebar Skip to footer

Django Bootstrap Dropdown Not Working

I am building website based in django. I am using bootstrap dropdown in navbar to collapse navbar on low resolution i.e. mobile view, but on clicking button navbar not getting drop

Solution 1:

as far as I know bootstrap uses its own javascript library for doing animated stuff like collapsing and so on. so you need to import their js file as well. put this line below your first <script> tag

<scriptsrc="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

note that because bootstrap js library uses jquery, you must put this line below importing jquery. otherwise it won't work.

Post a Comment for "Django Bootstrap Dropdown Not Working"