SyntaxFix
Write A Post
Hire A Developer
Questions
I think you both are right. The later answer works fine but its like setting a global option so you have to do the following:
$.ajaxSetup({ async: false }); //ajax call here $.ajaxSetup({ async: true });