how to make jquery ajax synchronous code example
Example: synchronous ajax
function getRemote() {
return $.ajax({
type: "GET",
url: remote_url,
async: false
}).responseText;
}
function getRemote() {
return $.ajax({
type: "GET",
url: remote_url,
async: false
}).responseText;
}