• Register
0 votes

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

Please log in or register to answer this question.

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:


9 7 4
38,600 points

Related questions

0 votes
1 answer 20 views
Problem: can anybody help me understanding this error : uncaught error: bootstrap's javascript requires jquery at bootstrap.min.js:6.
asked Mar 6 Wafa Abu Yousef 6.1k points
0 votes
1 answer 1.2K 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, 2020 jwilliam 3.9k points
0 votes
1 answer 10 views
Problem: Any help with this issue: how to link js file to html
asked Mar 19 Wafa Abu Yousef 6.1k points
0 votes
2 answers 44 views
Problem I am a bit confused what is a right way to link/include JavaScript file in HTML ? And hoe to do it right ?
asked Oct 17, 2020 alexh 2.6k points
1 vote
1 answer 10 views
Problem : Sometimes I got this error in chrome. Uncaught TypeError: Cannot read property 'fn' of undefined I'm using jquery, backbonejs, underscorejs and bootstrap for my company project.
asked Mar 21 Sabbir Hossain 14.6k points
0 votes
1 answer 26 views
Problem : Any help, I am facing following error: Uncaught (in promise) domexception: failed to load because no supported source was found.
asked Mar 13 Wafa Abu Yousef 6.1k points
0 votes
1 answer 2.6K 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 4 views
Problem: I'm just trying to learn jQuery and Javascript. I am starting to get concepts and I feel like real world issues are the best ways of learning. I downloaded the One Page Wonder Bootstrap template and I'm just trying to find the outerHeight of the nav and just call the height ... )); alert($(nav)); I know it's probably really easy, but this isn't working. Do I need to make this a function?
asked May 3 jamuna1 30.2k points