var options;$.ajax({ data:formData, url:'__URL__/saveorder', dataType:"JSON", type:"POST", async:false, success:function(result){ options = result.data; }});