How do I find what piece of code and the file is JS error?

d7d2a2e8623043bf9e850a753f93b3be.PNGThere is a websitewhere climbs JS error. How do I find what piece of code and the file is JS error?
July 12th 19 at 16:50
2 answers
July 12th 19 at 16:52
Solution
/themes/enfold/js/avia.jsavia.js:139

  1. Include automatic activation of the debugger when exceptions.
  2. See the call stack of.
  3. Find specific error.
3e076788d6ba4f3394cdb82fa326b4ba.png
July 12th 19 at 16:54
Solution
The error is that jquery, since version 1.12 is more restrictive to this type of selectors
a[href*=#]
Need to replace
a[href*="#"]
To change the file at /wp-content/themes/enfold/js/avia.js 91 and 139 rows
Or downgrade jquery to 1.11.

Hope this will solve your problem

Find more questions by tags JavaScriptjQuery