var ajax1 = $.ajax(url);var ajax2 = $.ajax(url);var ajax3 = $.ajax(url);$.when(ajax1, ajax2, ajax3).then(function(data){console.log(data);clearPassword();});