AnsweredAssumed Answered

Error when attempting to use on(dom.byId....

Question asked by csergent08 Champion on May 5, 2015
Latest reply on May 5, 2015 by csergent08

When I add the following block of code:

on(dom.byId("btnCancelFeedback"), "click", function () {
        document.getElementById("feedbackModal").style.visibility = 'hidden';
    });

I receive an error as follows:

 

TypeError: Cannot read property 'on' of null

 

"in domReady callback"

"TypeError: Cannot read property 'on' of null

 

I have used this method in the past with no issues including inside this project, but this causes an error. Any ideas?

 

 

Here is my complete app on github:https://github.com/csergent45/streetSigns

The JavaScript is in app/main.js

Outcomes