title: How to simulate typing in input field using jQuery?
body: <p>What I want is to simulate typing in <code>&lt;input&gt;</code> field using javascript.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>var press = jQuery.Event("keydown");
  press.ctrlKey = false;
  press.which = 65;
  $("#test").trigger(press);
  </code></pre>
  
  <p>But when I load the page, the <code>#test</code> input field has no typed characters,  the keycode of '65' represents 'A', but there is no 'A' input.</p>
  
  <p>Basically what I want is to automatically typing in the website using Greasemonkey. </p>
  
  <p>Please give me some ideas or some library with which I can use to do this.<br>
  Thanks a lot!</p>