title: jquery disable form submit on enter mvc 4
body: <p>i try do disable enter in my form using jquery, but didnt work...</p>
  
  <p>View:</p>
  
  <pre><code>@using (Html.BeginForm("Create", "Contrato", FormMethod.Post, new { id="formContrato"}))
  {
      @Html.AntiForgeryToken()
      @Html.ValidationSummary(true)
  .
  .
  .
  
  }
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>&lt;script&gt;
      $('#formContrato').keypress(function (event) {
          if (event.keyCode == '13') {
              event.preventDefault();
          }
      });
  &lt;/script&gt;
  </code></pre>