+ 9
Why this code is not working???
I made a carousel using bootstrap, in this code the image slider is not working. I tried all possible solutions but I didn't get solution. So, can anyone tell me what is the problem in this code.. https://code.sololearn.com/Wpk13L1mxAoH/?ref=app
2 Respuestas
+ 6
On line 9 paste this script tag.
<script src="https://code.jquery.com/jquery-3.1.1.js"></script>
Why?
Because jQuery is the most used JS library for making our life easier when writing JavaScript that involves working with DOM, AJAX and other browser stuffs.
It just happens that the bootstrap js library you are using also uses jQuery inside of it. Therefore if you wish to use the bootstrap.min.js library, then first you have to get jQuery library before it.
Hence the jQuery script tag before those other 2 script tag.
+ 4
Bootstrap needs "JQuery" library to work, link it in the html head