I've set up a WAMP server on local computer. I am using bootstrap on the website. I have included jQuery version 2.2.4 from a CDN and bootstrap latest version from its CDN as well.
jQuery is getting loaded fine, but nothing related to bootstrap JS is working. I've tried calling its function $('#carousel').carousel();
from the console, but it gives the following error
TypeError: $(...).carousel is not a function
My code in the <head>
tag is as follows:
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-2.2.4.js"
integrity="sha256-iT6Q9iMJYuQiMWNd9lDyBUStIq/8PuOW33aOqmvFpqI="
crossorigin="anonymous">
</script>
<!-- bootstrap.js -->
<script href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
I've read many Q/A's on SO regarding the exact same issue, but no answer helped me.