Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
jQuery

AJAX Form Submission in jQuery

Submit forms via AJAX using serialize() or FormData.

AJAX Form Submission in jQuery — a practical guide to jQuery AJAX form submit with clear examples you can reuse in real projects.

jQuery Tutorial Series (70/101). Prefer one article? Read the complete jQuery tutorial.

Short description

Disable the submit button while the request is in flight.

AJAX submit

$('#contact').on('submit', function (e) {
  e.preventDefault();
  var $form = $(this);
  $.post($form.attr('action'), $form.serialize())
    .done(function () { alert('Sent'); });
});

Leave a reply

Your email address will not be published. Required fields are marked *