jquery delay to call function
$(this).delay(1000).queue(function() {
// your Code | Function here
$(this).dequeue();
});
jquery delay to call function
$(this).delay(1000).queue(function() {
// your Code | Function here
$(this).dequeue();
});
jquery wait for all ajax requests to complete
//jQuery waiting for all ajax calls to complete b4 running
$.when(ajaxCall1(), ajaxCall2()).done(function(ajax1Results,ajax2Results){
//this code is executed when all ajax calls are done
});
function ajaxCall1() {
return $.ajax({
url: "some_url.php",
success: function(result){
console.log(result);
}
});
}
function ajaxCall2() {
return $.ajax({
url: "some_url.php",
success: function(result){
console.log(result);
}
});
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us