I want to run the following code:
ajaxUpdate(10);
With a delay of 1 second between each iteration. How can I do this?
You can also do it with
setTimeout(function() {ajaxUpdate(10)}, 1000);