jquery - Toggle menu error -


i getting error when site goes mobile , try , open nav menu

referenceerror: e not defined e.preventdefault();

here jquery using

    <script> $(document).ready(function() {      $('#menu-toggle').click(function () {       $('#menu').toggleclass('open');       e.preventdefault();     });  }); </script> 

any great.

in document.ready(function()) pass e function $(document).ready(function(e)). should solve problem.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -