0

I'm trying to implement Metronic admin theme in my app, but when I click on a button, I get Empty string passed to getElementById(). and the buttons don't work.

I'm trying to track down which piece of code triggers this error. How can I find out where the problem is?

user1049961
  • 2,656
  • 9
  • 37
  • 69

1 Answers1

6

write debugger; right before the javascript code that you feel is troublesome. Also keep the inspect tools open (usually F12)

This will create a breakpoint in the code execution with which you can then debug your code and look for errors.

Rohit Agre
  • 1,528
  • 1
  • 14
  • 25