+ 1
Strange Jquery error
In materialize.css I keep getting an error. I followed the documentation but it still won't work. It comes up with an error in the library itself, not my code. You can trigger the error by clicking on the hamburger menu. https://code.sololearn.com/W5fGVK3IWHI6/?ref=app
5 ответов
+ 2
Please check...
https://code.sololearn.com/WQ14VBkUX24J/?ref=app
+ 2
Calviղ Sorry, I didn't know you had to set it as an ID as well.
+ 1
For the burger menu, need to add attribute
data-target="mobile-demo"
Eg.
<a class="sidenav-trigger material-icons" data-target="mobile-demo" href="#" style="font-size:35px; margin-top:7px;">menu</a>
+ 1
Calviղ I copied your code exactly to replace the <a>. It still gives an error unfortunately.
+ 1
Clueless Coder yes, id must be same, to refer to the sidebar component