title: event prevent default with enter key
body: <p>I am trying to prevent my <code>$('form')</code> from reloading when I press the enter key. This code is not working. Any suggestions?</p>
  
  <pre><code>$('form').on('keypress', function (event) {
      console.log(event);
      if (event.keyCode === 13) {
          event.preventDefault();
          form.reset();
      }
  })
  </code></pre>