• Register
search
Log In
0 votes
1.3k 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.9k 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

36.1k points
edited by

Related questions

0 votes
1 answer 409 views
409 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
1 answer 577 views
577 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 30 views
30 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
1 vote
1 answer 14 views
14 views
Problem: I have recently started learning the Javascript, Jquery, Html . Please find below my code to show the input fields depending on the radio selection like: Please find below my Script: <script type="text/javascript"> function myyesnoCheck() {     if (document. ... br> I am trying to show and hide my Input Fields Based on the Radio button selection. Kindly guide me in this task.
asked Jun 10 Martin K 6.6k points
1 vote
1 answer 194 views
194 views
Problem : Trying to drag and drop an image on a div. but the image does not get dragged on to the div and gives the following error: uncaught typeerror: failed to execute 'appendchild' on 'node': parameter 1 is not of type 'node'.
asked Nov 11, 2019 peterlaw 6.9k points