Why isn't my function defined?

2020
1
Jump to solution
07-30-2015 08:39 AM
ChrisSergent
Regular Contributor III

I created a function that will be based on onfocusout so that when the user tabs out of a textbox it should run, but my function is undefined. I will have to make quite a few functions like this, 27 to be exact. Any ideas why I am getting this error? No similar posts on here.

Here is my code:

JS Bin - Collaborative JavaScript Debugging

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

That's because it's not global, can't access it in the HTML

Use dojo/on to handle events better

JS Bin - Collaborative JavaScript Debugging

View solution in original post

1 Reply
ReneRubalcava
Frequent Contributor

That's because it's not global, can't access it in the HTML

Use dojo/on to handle events better

JS Bin - Collaborative JavaScript Debugging