[jQuery] serialize method

[jQuery] serialize method

If anyone is looking for a serialize method, the following works with
the latest dev code (http://jquery.com/src/dev/sane/).
$.fn.serialize = function(ret) {
    var f = this.get(0);
    $.xml( f.method || "GET", f.action || "", $.param(this.formValues()),
function(r) {
        if (ret) ret($.httpData(r));
    });
}
usage:
$('#myForm').serialize(myCallback);
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/