Your code is correct. On my system, this code works fine.
Bootstrap does not have a definition for the slide class. But without the Slide class, carousel images will change without any animation effect.
Add a script to your code
<script> $(document).ready(function () { $('.carousel').carousel(); }); </script>
Check out the Bootstrap CSS and JS code in the code. and also check the order of the help files
You can follow this order: -
- bootstrap.css
- bootstrap-theme.css
- Jquery-1.9.1.js
- bootstrap.js
The script block will not work with the JQ library. 2. Add the JQ library file correctly.
And make sure the JQ file is loaded before the script runs. To do this, you can add a link at the top of the page.
source share