Select to view content in your preferred language

Why isn't my function defined?

2130
1
Jump to solution
07-30-2015 08:39 AM
ChrisSergent
Deactivated User

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
Honored 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
Honored 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