This should submit each form via ajax without having to map the fields yourself:
$('form').each(function() {
var that = $(this);
$.post(that.attr('action'), that.serialize());
});
More Related Contents:
- Prevent users from submitting a form by hitting Enter
- jQuery: serialize() form and other parameters
- Submitting HTML form using Jquery AJAX
- How to send image to PHP file using Ajax?
- Submit form with Enter key without submit button? [duplicate]
- jQuery’s .on() method combined with the submit event
- Retrieving HTTP status code from loaded iframe with Javascript
- How to make Chrome remember password for an AJAX form?
- Ajax Form submit with preventDefault
- HTML5 validation before ajax submit
- MS MVC form AJAXifying techniques [closed]
- Jquery Ajax Posting JSON to webservice
- How do I catch an Ajax query post error?
- Fade in each element – one after another
- jQuery validator and a custom rule that uses AJAX
- Prevent redirect after form is submitted
- jQuery CORS Content-type OPTIONS
- How to change an element’s title attribute using jQuery
- How to set encoding in .getJSON jQuery
- replace div content using ajax and jquery
- jQuery – is it bad to have multiple $(document).ready(function() {});
- What is the best way of showing progress on an Ajax call?
- Jquery ajax error callback
- How to call external url in jquery?
- Return Value from inside of $.ajax() function
- JQuery AJAX Consume SOAP Web Service [closed]
- Post JSON to Python CGI
- jQuery ajax and SSL?
- My Own Like Button: Django + Ajax — How?
- jQuery.getJSON not working properly in IE8 with gdata json-c. Why? [duplicate]