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
It was a jQuery issue. I should have used: on(document.getElementById('ownerAddress'), 'focusin', getElementId);