Why this code is not working??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

10th Mar 2019, 5:36 AM
Prakash Joshi
Prakash Joshi - avatar
2 Answers
+ 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.
19th Mar 2019, 5:57 PM
Morpheus
Morpheus - avatar
+ 4
Bootstrap needs "JQuery" library to work, link it in the html head
10th Mar 2019, 11:31 AM
ThePension
ThePension - avatar