From: Sean Catchpole Date: Thu, 26 Jul 2007 00:27:56 +0000 (+0000) Subject: Fixed ajax array arguments in $.param X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=8a80d05a446ac7ac8a95459fb68932ddf539ff62;p=jquery.git Fixed ajax array arguments in $.param --- diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 645caf7..c8e10bd 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -794,7 +794,7 @@ jQuery.extend({ // If the value is an array then the key names need to be repeated if ( a[j] && a[j].constructor == Array ) jQuery.each( a[j], function(){ - s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) ); + s.push( encodeURIComponent(j) + "[]=" + encodeURIComponent( this ) ); }); else s.push( encodeURIComponent(j) + "=" + encodeURIComponent( a[j] ) );