scroll spy doesn't work


Djordje Sevic asked 2 months ago


I am new to MDB and I have problem with scroll spy. There is my code:

Hope that you will solve this problem for me and explain me what was my mistake in code.

Thank you, George

Mateusz Łubianka staff answered 2 months ago

Hi @Djordje Sevic,

You should link js scripts before closing tags. It's better solution than place them in the head tags. Secondly I recommend to initialize functions inside 'document.ready' function. For example:

$( document ).ready(function() {
new WOW().init(); 

I can see that you use cdn links with MDB css, js. So you can insall our mdbsnippets extension for VSCode. With mdbsnippets you can just use '!mdb' shortcut and you will get whole Free template with correct css and js links.


Okey, thank you for that but scroll spy still doesn't work. I can not find problem :/ .

Mateusz Łubianka staff commented 2 months ago

I crated a snippet, check it out:


Please insert min. 20 characters.


Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: General Bootstrap questions
  • MDB Version: -
  • Device: desktop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes