I am trying to make a code for my website
function vind(list) {
for (i = 0; i < list.data.length; i++) {
jQuery.ajax({
url: 'https://xyz-abc.com/send.php?post=123',
dataType: 'script',
success: function () {
volve += 1;
if (volve >= list.data.length) {
}
}
});
}
}
all code is working fine.
https://xyz-abc.com/send.php?post=123
https://xyz-abc.com/send.php?post=123
https://xyz-abc.com/send.php?post=123
https://xyz-abc.com/send.php?post=123
code posting continous.
I want to set Interval between each post.
https://xyz-abc.com/send.php?post=123
wait 3 sec.
https://xyz-abc.com/send.php?post=123
wait 3 sec.
https://xyz-abc.com/send.php?post=123
wait 3 sec.
I tried setTimeout not working.
Help.