title: ASP .net doesn't fire submit event
body: <p>I try to do a submit ajax with ASP .net and jquery but he never fire d«the event, I already try with this two examples and he never fire the event alert. </p>
  
  <pre><code>&lt;form id="form"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-sm-6"&gt;
              &lt;div class="form-group"&gt;
                  @Html.TextBoxFor(m =&gt; m.VatNumber,new { @class = "form-control", @id="VatNumber"})
                  @Html.ValidationMessage("VatNumber")
               &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="col-sm-6"&gt;
               &lt;div class="form-group"&gt;
                  &lt;input type="submit" class="btn btn-primary" value="Check VAT" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
     &lt;/div&gt;
  &lt;/form&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $('#form').submit(function () {
              alert("cheguei");
  
              $.ajax({
                  url: '@Url.Action("CheckVat")',
                  type: "POST",
                  dataType: "json",
                  contentType: "application/json; charset=utf-8",
                  data: JSON.stringify({
                      VatNumber: $('#VatNumber').val(),
                  }),
                  success: function (result) {
                      alert("success");
                  },
                  error: function (result) {
                      alert("error");
                  }
              });
            return false;
          });
      });
      $(function () {
          $('#form').submit(function (event) {
              alert("cheguei");
              event.preventDefault(); // Prevent the form from submitting via the browser
              var form = $(this);
              $.ajax({
                  type: form.attr('method'),
                  url: form.attr('action'),
                  data: form.serialize()
              }).done(function (data) {
                  // Optionally alert the user of success here...
              }).fail(function (data) {
                  // Optionally alert the user of an error here...
              });
          });
      });
  &lt;/script&gt;
  </code></pre>