set async false to ajax code example
Example: async false in ajax
async:false = Code paused. (Other code waiting for this to finish.)
async:true = Code continued. (Nothing gets paused. Other code is not waiting.)
async:false = Code paused. (Other code waiting for this to finish.)
async:true = Code continued. (Nothing gets paused. Other code is not waiting.)