Skip to main content

Bug Tracker

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 dmethvin comment:1

component: unfiledajax
type: bugfeature

Changed November 15, 2010 03:04AM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

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.