title: jQuery mobile: ajax form submission + disable enter key to submit form
body: <p>I am trying to learn a bit of jQuery Mobile preparing a little form and I want to disable the enter key to submit form.</p>
  
  <p>Here's what I tried:</p>
  
  <pre><code>$('#form').submit(function(e) {
                      e.preventDefault(); // don't submit multiple times
                      this.submit(); // use the native submit method of the form element
                      $('#field').val(''); // blank the input
                  });
  
  
  // Validate and submit form
  
  $("#page").live("pageinit", function () {
                  $("#form").validate({
                          submitHandler: function(form) {
                                  // do other stuff for a valid form
                                  $.post('insert.php', $("#form").serialize(), function(data) {
                                          $('#results').html(data);
  </code></pre>
  
  <p>But every time I press enter the form is submitted anyway...</p>
  
  <p>What am I doing wrong?</p>