var arr=[1,2,3,4,5], i = 0; (function fn(){ $('#block_info').append(arr[i++]); if (i<arr.length) setTimeout(fn,10000); })();