Skip to content

Instantly share code, notes, and snippets.

@karlseguin
Created March 3, 2011 14:08
Show Gist options
  • Save karlseguin/852817 to your computer and use it in GitHub Desktop.
Save karlseguin/852817 to your computer and use it in GitHub Desktop.
simulate typing into an input
function simType(input, value)
{
var characters = value.split('');
var i = 0;
var id = setInterval(function()
{
input.value += characters[i++];
if (i == characters.length) { clearInterval(id); }
}, 75);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment