Need To Load Bootstrap-dropdown.js After Bootstrap.js To Make Dropdown Work - Why?
New to bootstrap and javascript and was trying to build a fairly minimal example of a dropdown menu. I am using bootstrap 2.3.2 which is the current version. My css and js are vi
Solution 1:
From Bootstrap website :
Plugins can be included individually (though some have required dependencies), or all at once. Both bootstrap.js and bootstrap.min.js contain all plugins in a single file.
Both bootstrap.js
and bootstrap.min.js
contain all plugins in a single file. you do not need the bootstrap-dropdown.js
if you include bootstrap.min.js
or bootstrap.js
from the bootstrap page, check this overview on Bootstrap site. i can see that you are including both bootstrap.min.js
and bootstrap.js
but only one is enough.
Check the demo here, only using bootstrap.js
.
Also, you can download a customized version from here, just according to your need you can add components/plugins and then download the custom build.
Post a Comment for "Need To Load Bootstrap-dropdown.js After Bootstrap.js To Make Dropdown Work - Why?"