JavaScript Bootstrap JS not loading bootstrap loading bar,bootstrap loading mask,bootstrap loading placeholder,bootstrap

The solution to this problem might be very trivial but its got me banging my head on walls! Bootstrap's js files are not loading on my web page for some reason.

I simplified the page to the bare minimum and here's the code:

<!DOCTYPE html>

<html>
    <head>
        <link rel="stylesheet" target='_blank' href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
    </head>
    <body>
        <div class="dropdown">
                <button class="btn btn-default dropdown-toggle" type="button" id="cz" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                Dropdown
                <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" aria-labelledby="cz">
                    <li><a target='_blank' href="#">Option 1</a></li>
                    <li><a target='_blank' href="#">Option 2</a></li>
                    <li><a target='_blank' href="#">Option 3</a></li>
                </ul>
            </div>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"/>
        <script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.js"></script>
    </body>
</html>

Now when I click on the button, nothing happens and I don't see the dropdown. When I checked the js files loaded(through browser inspect element), I see that only JQuery has loaded.

If I remove JQuery, I get the correct error that Bootstrap requires Jquery. I've created a codepen and it works perfectly fine on it. Could someone help me with this please?? :(

Answer:1

I'm working on a responsive menu for a quite complex website. The horizontal menu collapses to a vertical one for smaller screens and I've used javascript to toggle the sub-menu items open/closed when ...

I'm working on a responsive menu for a quite complex website. The horizontal menu collapses to a vertical one for smaller screens and I've used javascript to toggle the sub-menu items open/closed when ...

  1. javascript toggle menu button
  2. javascript toggle menu script
  3. javascript toggle menu
  4. javascript toggle menu example
  5. javascript toggle menu mobile
  6. javascript toggle menu code
  7. javascript toggle menu stack overflow
  8. toggle menu javascript
  9. javascript toggle dropdown menu
  10. vanilla javascript toggle menu
  11. javascript for toggle menu bar
  12. pure javascript toggle menu
  13. javascript multiple toggle menu
  14. javascript toggle responsive menu
  15. javascript dropdown menu toggle on click
  16. javascript hamburger menu toggle
  17. javascript side menu toggle
  18. bootstrap javascript menu toggle

How to open the modal after a ajax call on success i need to trigger the modal window automatically <a class="main_blue_button" href="#complete_application_modal" id="applicationBtn">SIGN UP<...

How to open the modal after a ajax call on success i need to trigger the modal window automatically <a class="main_blue_button" href="#complete_application_modal" id="applicationBtn">SIGN UP<...

I am facing issue while making a dynamic table with dynamic rowspan. My json is a array of objects. And the element objects are also arrays. The element arrays should come as the no of dynamic rowspan....

I am facing issue while making a dynamic table with dynamic rowspan. My json is a array of objects. And the element objects are also arrays. The element arrays should come as the no of dynamic rowspan....

  1. angularjs repeat start end
  2. angularjs repeat start
  3. angularjs ng-repeat-start
  4. angularjs ng-repeat start from index
  5. angularjs ng-repeat start end
  6. angularjs ng-repeat-start example
  7. angularjs ng-repeat-start filter
  8. angularjs ng-repeat-start nested
  9. angularjs ng-repeat-start table
  10. angularjs data-ng-repeat-start

I have to display the content in a grid. All items are div's with random height, and I need to have control over how they are displayed. It is a responsive UI with 4-cols, 3-cols and 1-cols. Assume ...

I have to display the content in a grid. All items are div's with random height, and I need to have control over how they are displayed. It is a responsive UI with 4-cols, 3-cols and 1-cols. Assume ...

  1. position div at bottom of parent
  2. position div in center
  3. position div at bottom of page
  4. position div relative to another div
  5. position div on top of another
  6. position div below another div
  7. position divided by time
  8. position divs side by side
  9. position div to right
  10. position div relative to parent
  11. position div in center of screen
  12. position div in center of parent
  13. position div bottom right of parent
  14. position div at bottom of screen
  15. position div inside div
  16. position div over image
  17. position div at top of page
  18. position div vertically center
  19. position div to right of another div
  20. position div at bottom of div