Serozha, if I call .serialize() on this form:
<form action="dump.php" method="get">
<input type="checkbox" name="a[x][]" value="1" checked="checked">
<input type="checkbox" name="a[x][]" value="2" checked="checked">
<input type="checkbox" name="a[z][]" value="3" checked="checked">
<input type="submit" name="Submit" value="submit">
</form>
I get:
decodeURIComponent( $('form').serialize() ); // "a[x][]=1&a[x][]=2&a[z]
[]=3"
So I'm not sure what the problem is.
See http://benalman.com/news/2009/12/jquery-14-param-demystified/ for
some more information on params serialization.
- Ben
On Dec 29, 4:28 pm, Serozha <[email protected]> wrote:
> Can someone add an option to the function serialize, which will keep
> intact the square brackets in the names of form fields?
--
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en.