Is $ .post asynchronous? So if I were to make such commands below, would they all be done at the same time, and not synchronously (1, then, then, then, etc.)?
$(document).ready(function() {
var variable1 = '1';
var variable2 = '2';
var variable3 = '3';
var variable4 = '4';
$.post("process.php", {element1: variable1}, function(data){
$("#area1").html(data);
});
$.post("process.php", {element2: variable2}, function(data){
$("#area3").html(data);
});
$.post("process.php", {element3: variable3}, function(data){
$("#area4").html(data);
});
$.post("process.php", {element4: variable4}, function(data){
$("#area4").html(data);
});
});
source
share