Side navigation
#5155 closed feature (invalid)
Opened September 01, 2009 04:32PM UTC
Closed November 15, 2010 03:04AM UTC
array input fields
Reported by: | naktinis | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | ajax | Version: | 1.3.2 |
Keywords: | Cc: | naktinis@gmail.com | |
Blocked by: | Blocking: |
Description
Say we have checkbox array:
<input type="checkbox" name="check[]" value="a" />
<input type="checkbox" name="check[]" value="b" />
$("input[name='check[]']").val() returns "on"
I think it would be more correct to return an array of on/off states:
["on", "off"] etc.
Attachments (0)
Change History (2)
Changed June 12, 2010 07:09PM UTC by comment:1
component: | unfiled → ajax |
---|---|
type: | bug → feature |
Changed November 15, 2010 03:04AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
This has been discussed in the forum several times. We can't really change that without possible backward compat problems, this is best done with a new method like .vals() guaranteed to return an array.