The link to the bootstrap.js file is important because the drop-down list function is included in it. Line 637 of bootstrap.js defines a dropdown definition. eg:
var toggle = '[data-toggle=dropdown]' , Dropdown = function (element) { var $el = $(element).on('click.dropdown.data-api', this.toggle) $('html').on('click.dropdown.data-api', function () { $el.parent().removeClass('open') }) }
Similarly defined in bootstrap.min.js, which is a mini version of bootstrap.js. Removing the link to the bootstrap.js file will not cause the drop-down menu to work.
I also advise you to use javascripts in the footer. for instance
<script type="text/javascript" src='/js/jquery-1.9.1.min.js'></script> <script type="text/javascript" src='/js/bootstrap.min.js'></script> <script type="text/javascript" src='/js/jquery.cookie.js'></script>
source share