Retornar dados com Ajax
set the option async: false and make it non-asynchronous
Lazy Lizard
set the option async: false and make it non-asynchronous