]> source.dussan.org Git - jquery.git/commitdiff
forgot to remove the old serialize function
authorGilles van den Hoven <gilles0181@gmail.com>
Tue, 16 May 2006 16:21:20 +0000 (16:21 +0000)
committerGilles van den Hoven <gilles0181@gmail.com>
Tue, 16 May 2006 16:21:20 +0000 (16:21 +0000)
ajax/ajax.js

index d448ebbddb4585a74c67d09eb732bab8f2cafc0a..ecac58119cd1c58d07ed13790950f3b22b47b98f 100644 (file)
@@ -90,22 +90,6 @@ $.postXML = function( url, data, ret ) {
        $.post( url, data, ret, "xml" );
 };
 
-// Dynamic Form Submission
-// Based upon the mailing list post at:
-// http://jquery.com/discuss/2006-March/000424/
-
-$.fn.serialize = function(callback) {
-       return this.each(function(){
-               var a = {};
-               $(this)
-                       .find("input:checked,hidden,text,option[@selected],textarea")
-                       .filter(":enabled").each(function() {
-                               a[ this.name || this.id || this.parentNode.name || this.parentNode.id ] = this.value;
-                       });
-               $.xml( this.method || "GET", this.action || "", $.param(a), callback );
-       });
-};
-
 $.param = function(a) {
        var s = [];
        if (a && typeof a == 'object' && a.constructor == Array) {