Consider the following function:
$("document").ready(function(){
var echoText = 'Hello world!';
echoText = echoText.split('');
$.each(echoText, function(key, value){
$("#content").append(value);
});
});
This simply echoes the input text. What I want to do, though, is to add a delay between every character echoed, so it looks like a slow human typing. Any ideas how to proceed? I tried googling, but nothing helps so far.
Consider using the
setTimeout()function: