id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,blocking,blockedby
9540,simplify form submissions,rasmus@…,,"This pattern repeats in basically every jQuery application:

{{{
var form = $('form#foo');

$.post(
  form.prop('action'), 
  form.serialize(),
  function (content) {
    // ...
  }
);
}}}

Why don't we have something that simply uses the information already contained in the form tag? It already specifies the method (GET or POST), the URL (action) and we know we have to serialize the data on the form, so why not simply:

{{{
$('form#foo').send( function (content) {
    // ...
} );
}}}

I prototyped a function that will do this here:

http://jsfiddle.net/mindplay/ZDvvm/
",feature,closed,low,1.next,ajax,1.6.1,wontfix,,,,
