Answer the question
In order to leave comments, you need to log in
Why can't I return data from an AJAX function?
I have an input on which the event lister is hung to change the input, a callback is launched in which my RequestForCadastralCode function is launched.
But I constantly get undefined, I'm sure the problem is that I'm not using async await correctly, but I don't know how to solve this problem.
Here is the code https://jsfiddle.net/1a65yxo2/
Answer the question
In order to leave comments, you need to log in
when you use async in
let arrCities = async () => {
return await RequestForCadastralCode(e.target.value)
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question