• Register
0 votes
2.6k 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

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:

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

9 7 4
38,600 points

Related questions

0 votes
1 answer 1.1K views
1.1K 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
2 answers 30 views
30 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.4k points
0 votes
1 answer 2K views
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 3 views
3 views
Problem: uncaught typeerror: $(...).datetimepicker is not a function
asked 6 days ago Ethan ross 1.8k points
0 votes
1 answer 57 views
57 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
0 votes
1 answer 19 views
19 views
How can i hide div based on select option value using javaScript?
asked Sep 25, 2020 Daniel Anderson 4k points
0 votes
1 answer 42 views
42 views
I need to change the background color on button click applyig Javascript.
asked Sep 25, 2020 Daniel Anderson 4k points
0 votes
1 answer 17 views
17 views
We had a online based survey company. We survey the market on the basis of user&rsquo;s opinion. we need to store the user&rsquo;s data and utilize the text data input. How can we do this using javascript ?
asked Sep 15, 2020 Daniel Anderson 4k points