AnsweredAssumed Answered

How do I get the element with focus?

Question asked by csergent08 Champion on Aug 12, 2015
Latest reply on Aug 12, 2015 by csergent08

I am trying to get the element name in the onfocus event. I created a shorter block of code here: JS Bin - Collaborative JavaScript Debugging

But I get the error:

Uncaught TypeError: Cannot read property 'call' of undefinedk.parse @ init.js:208k @ init.js:208(anonymous function) @ onFocus.html:62ha @ init.js:22(anonymous function) @ init.js:23ia @ init.js:23fa @ init.js:23g @ init.js:25(anonymous function) @ init.js:30

 

And I have checked my code with Lint here: The Online Lint

Outcomes