Replace input in real time with jQuery
<p>I have a problem with this script, I want to replace anything entered in the input field with a specific letter in real time, with <code>Hello World</code> in the field.</p>

<pre><code> &lt;input id="inputID" type="text" value="" maxlength="11"/&gt;
 $('#inputID').keyup(function(e){
  var cv=["h","e","l","l","o"," ","w","o","r","l","d",""];

  var i=$('#inputID').val();

  for (j=0;j&lt;11;j++){

    this.value = this.value.replace(i[j],cv[j]);

}

});
</code></pre>

<p>This script works  well when I write slowly but not when I write quickly.
thanks for your help</p>
