title: Submitting form with enter button in Ajax
body: <p>My issue is that when I click my button, it will work properly, but if I use the enter button, it will attempt to submit the form and appends a ?var=x to the URL.</p>
  
  <p>My two inputs: </p>
  
  <pre><code>    &lt;input type="text" name="users" onkeydown="if (event.keyCode == 13) document.getElementById('submitbtn').click()"&gt;
      &lt;input type="button" name="submitbtn" onclick="showUser(users.value)"&gt;
  </code></pre>
  
  <p>You may view my source for the rest. If you put in 1 or 2 and click the button, you will get results, but if you hit enter, it will not give you results and changes the URL as I said.</p>
  
  <p><a href="http://crystalarcade.com/shoutbox" rel="nofollow">http://crystalarcade.com/shoutbox</a></p>