title: onsubmit is not calling my function when Enter is pressed
body: <pre><code>&lt;form onsubmit="submit(); return false;" name="text" id="form" method="get"&gt;
  &lt;input type="feild" style="font-size: 150%;" id="field" name="field" value=""
  onSubmit="this.value='';"/&gt;
  &lt;input type="button" id="add" style="font-size: 150%;" value=" Add tally to score "/&gt;
  &lt;input type="submit" value="submit" style="visibility:hidden" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>If I change "submit();" to "alert('here');" it calls the alert function perfectly.
  Why does it not call the submit function?</p>
  
  <p>I want the function to be called when the user presses enter.
  <a href="http://jsfiddle.net/kaninepete/JsAr4/" rel="nofollow">http://jsfiddle.net/kaninepete/JsAr4/</a></p>
  
  <p>note: The button on the side is for a different purpose, and not part of the problem.
  <strong>edit</strong>
  More work, trying to follow Christians example has gotten me here <a href="http://jsfiddle.net/kaninepete/MGxNG/" rel="nofollow">http://jsfiddle.net/kaninepete/MGxNG/</a></p>
  
  <p>I don't see why this is different than his example!
  All I get is "{"error": "Please use POST request"}"
  and his works perfectly.</p>