I have this-like code:
$('li').each(function(){
var data = $(this).text();
requestFunction(data, function(status){
if ( status == 'OK' ) do stuff...
});
});
So, i need to do some delay between using function "requestFunction()". How could i do this? Hope it understandable, thanks.