title: jQuery press button as enter on a text field
body: <p>I have this text field:</p>
  
  <pre><code>&lt;input id="address" type="text" value=""&gt;
  </code></pre>
  
  <p>and this button:</p>
  
  <pre><code>&lt;input id="ricerca" type="button" class="enter" value="GO!"&gt;
  </code></pre>
  
  <p>and jQuery:</p>
  
  <pre><code>$("#ricerca").click(function(){
      var e = jQuery.Event('keypress');
      e.which = 13; // #13 = Enter key
      $("#address").focus();
      $("#address").trigger(e);
  });
  </code></pre>
  
  <p>I want to simulate the "Enter" press INSIDE the <code>#address</code> field, by clicking on the <code>#ricerca</code> button. It is necessary that the cursor is inside the <code>#address</code> field when I press the button.</p>
  
  <p>Can you please say me where are the errors?</p>