Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$.formParams() should not convert arrays into single-value-attributes #96

Open
tunylund opened this issue May 31, 2013 · 2 comments
Open

Comments

@tunylund
Copy link

Hi,

It seems that formparams omits array-types even though the input name specifically represents an array:

Given the following html:

<form id="test-form" action="#">
<input type="hidden" name="foo[]" value="bar">
</form>

The following happens currently:

$("#test-form").formParams()
-> { foo: "bar" }

But what should happen is:

$("#test-form").formParams()
-> { foo: ["bar"] }

see codepen @ http://codepen.io/tunylund/pen/IqCLF

@adrian-ludwig
Copy link

+1 ! Need this badly

@esatemre
Copy link

+1 Still

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants