Akhil Chauhan Akhil Chauhan - 6 months ago 3x
HTML Question

Uncaught: Bootstrap's JavaScript requires jQuery

I have included jquery and bootstrap.min.js file in my footer section or it means i have my all script tag at the bottom of the code. But when i am loading my page the browser console throw an error says : Uncaught Error: Bootstrap's JavaScript requires jQuery.
I am including these files locally like below:-

<script src="" type="text/javascript"></script>
<script src="" type="text/javascript"></script>


It's uncommon to use localhost or for a file path. Use relative path instead.

Regarding script position: you can leave them in the footer, that will speed up page loading, but make sure any JavaScript code you execute is AFTER jquery/bootstrap in the dom. And don't forget to wrap your code inside a document ready jquery function