Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Materializecss responsive menu not working?

Tags:

materialize

I am using materializecss but the responsive menu is not werking?? I coppied the exact html from their website it looks good but een scaling the window to a smaller size the button appears but when I click it it doesn't work...

like image 467
Aapje Avatar asked Aug 02 '26 07:08

Aapje


1 Answers

Did you link the js library of materializecss into your html?

Url to the materialize library

also you need Jquery for this to work

Url to jquery library

after that you have ti initialize the reponsive menu. In your js file like this:

  $(".button-collapse").sideNav();

Hope it helps!

like image 75
C.Schubert Avatar answered Aug 07 '26 01:08

C.Schubert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!