• Register
0 votes
1.9k views

Problem :

I am trying to execute bootstrap jquery code but getting below error
uncaught error: bootstrap's javascript requires jquery at bootstrap.min.js:6

6 5 3
6,930 points

1 Answer

0 votes

Solution : 

To solve the issue you must put jQuery above the Bootstrap JS as shown bellow.

    <!-- jquery -->
    <script src="//code.jquery.com/jquery-1.12.0.min.js"></script>
    <script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <!-- [/] jquery -->

    <!-- bootstrap -->
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
    <!-- [/] bootstrap -->

Further Readings:

https://github.com/aurelia/cli/issues/478

9 7 4
38,600 points

Related questions

0 votes
1 answer 722 views
722 views
Problem : I am very new to Bootstrap. I always wanted to work on bootstrap so now I want to use Bootstrap to make my interface for my program. I also added jQuery 1.11.0 to a <head> tag and thought that I can work with it, but when I tried to launch my web page ... I have tried with the copies hosted on many CDNs, but I am unable to get it to work. Can someone point out which step I am missing?
asked Jan 27 jwilliam 3.9k points
0 votes
2 answers 14 views
14 views
I am a bit confused what is a right way to link/include JavaScript file in HTML ? And hoe to do it right ?
asked 3 days ago alexh 280 points
0 votes
1 answer 1.2K views
1.2K views
Problem : I am facing following error message: DOMException: Failed to load because no supported source was found in video.play(); line. I have started getting this issue only after adding following code: video.setAttribute('crossorigin', 'anonymous'); I am trying to develop an app in the mobile so ... 0); setTimeout(loop, 1000 / 30); // drawing at 30fps } })(); }, 0); </script> </body> </html>
asked Nov 27, 2019 alecxe 7.5k points
0 votes
1 answer 35 views
35 views
Problem : I have written two different types of sticky menus for two different pages. Following is the error Inside the anonymous function, use jquery to select the footer div. it has an id of 'footer'. Following is the code for both Menus. $(document).ready(function () { ... the bottom doesn't work because the second line of code var contentNav = $('.content-nav').offset().top; fires a error .
asked Nov 19, 2019 peterlaw 6.9k points