I am using the Materialize framework, and for the life of me can not figure out why the scrollspy plugin is not working for me. My markup or css certainly isn't the issue - I'm certain it's right.
Console is showing:
Uncaught TypeError: $(...).scrollSpy is not a function
And references the line where I initialize the plugin:
$( document ).ready(function() {
$('.scrollspy').scrollSpy();
});
I was under the impression that the plugin "came with" materialize's JS, but even when I include scrollspy.js myself in my header, I'm still getting the error.
What am I missing?
<script>tag for materialize/scrollspy below the<script>tag for jQuery? - Sam$refers to jQuery, and so it isn't your issue, you are maybe loading jQuery more than once - A. Wolff<script>tags. - Sam