Take the 2-minute tour ×

Is there any magic jquery method that will allow you to submit a form to its action URL via AJAX rather than with an page reload?

I know you can bind a form's submit event to a handler function, but I'm also looking for something that will automatically serialize the form's request variables into the $.post's data element in the same as the browser does, and then fire off an ajax post or get. (the specific problem I'm trying to solve is to "ajaxify" an existing form)

share|improve this question

4 Answers 4

up vote 1 down vote accepted

Yes there is jquery.form plugin. All you need is to put this in the DOM ready callback:

share|improve this answer

You can indeed - there's a plugin for it...


If you don't want to use a plugin and have a fairly simple form, you can loop through the form to create a request using $.ajax instead.

share|improve this answer

I am usually make this:

  var form = $(this);
  $.post( form.attr('action'),
    // do something with response 

  return false;

share|improve this answer

Your Answer


