SyntaxFix
Write A Post
Hire A Developer
Questions
Both answers are wrong. You can. You need to call
$.ajaxSetup({ async: false });
before your json ajax call. And you can set it to true after call retuns ( if there are other usages of ajax on page if you want them async )