javascript - Toggle menu not working on smartphones -


I have a responsive website that shows a dropdown menu on small resolutions. Or, it should display a toggle button, which jumps at 479 px resolution, but for some reason it does not have to be opened when clicking on it. I am very bad with JS, so I was thinking that someone could help me.

If I understood it properly, there is no JS function that will "make" it ... Again, sorry, I'm not really familiar with JS, I'm still learning.

Thank you to a bunch

Should:

  & lt; Script & gt; $ (document) .ready (function () {$ ('menu_trigger'). ('click', function () {$ ('nav') toggle ();});}); & Lt; / Script & gt;   

Just put it in your section.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -