Error: Bootstrap's Javascript Requires Jquery
Solution 1:
Make sure to load jquery.js file before loading bootstrap. This solved my problem.
Solution 2:
That error can only be caused by one of three things:
Your JavaScript file is not being properly loaded into your page
You have a botched version of jQuery. This could happen because someone edited the core file, or a plugin may have overwritten the $ variable.
You have JavaScript running before the page is fully loaded, and as such, before jQuery is fully loaded. You should check the Firebug net panel to see if the file is actually being loaded properly.
If not, it will be highlighted red and will say "404" beside it. If the file is loading properly, that means that the issue is number 2.
Make sure all javascript code is being run inside a code block such as:
$(document).ready(function () {
//your code here
});
Solution 3:
Your first load jquery.js(min) then boostrap load
<scriptsrc="/node_modules/bootstrap/dist/js/bootstrap.js"></script>
Post a Comment for "Error: Bootstrap's Javascript Requires Jquery"