Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Materialize sideNav() and dropdown() not working

I started HTML few weeks ago and I have a problem. I create my website with materialize framework and I have trouble when using initializing sideNav() or dropdown(). What's the problem ? I followed guides on http://materializecss.com/getting-started.html Hope you will help me ! (Sorry if my english is not perfect, i'm french)

The error i getwhere is the error

like image 435
zeTechMoy Avatar asked Dec 05 '25 14:12

zeTechMoy


2 Answers

You are loading the jQuery library twice. I suggest you remove the last one(at line 271).

like image 175
aleksandar Avatar answered Dec 07 '25 02:12

aleksandar


use script tag at last

<body>
  content..then function atlast
  <script src="js/jquery.min.js"></script>
    <script src="js/materialize.min.js"></script>
    <script>
            $(".button-collapse").sideNav();
        </script>
  </body>
like image 30
Saksham Avatar answered Dec 07 '25 03:12

Saksham