$("#loading").css("display", "block"); for(i=0; i < aValue; i++) { $.ajax({ url: '/link1/getdata', type: "GET", cache: false, async: false, data: {data : i} success: function(result) { $("#loading").css("display", "none"); }, }); }
async: false
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)