diff options
author | Sean Catchpole <littlecooldude@gmail.com> | 2007-07-26 00:27:56 +0000 |
---|---|---|
committer | Sean Catchpole <littlecooldude@gmail.com> | 2007-07-26 00:27:56 +0000 |
commit | 8a80d05a446ac7ac8a95459fb68932ddf539ff62 (patch) | |
tree | ab876d2330c44836bba2f78c537236bfb99121fb | |
parent | f8b00051c377360f0106e56c24df1353aaf6ad44 (diff) | |
download | jquery-8a80d05a446ac7ac8a95459fb68932ddf539ff62.tar.gz jquery-8a80d05a446ac7ac8a95459fb68932ddf539ff62.zip |
Fixed ajax array arguments in $.param
-rw-r--r-- | src/ajax/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 645caf72e..c8e10bd6d 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] ) ); |