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?

0

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.