Materialize sideNav () and dropdown () not working

I started HTML a few weeks ago and I have a problem. I am creating my site with a materialized structure and I am having problems using sideNav () or dropdown () initialization. What is the problem? I followed the tutorials at http://materializecss.com/getting-started.html Hope you can help me! (Sorry if my English is not perfect, I'm French)

The error i getwhere is the error

+3


source to share


2 answers


You are loading the jQuery library twice. I suggest deleting the last one (on line 271).



+7


source


use script tag finally



<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>
      

Run codeHide result


+1


source







All Articles