> The value for the Hidden field is "hiddenValue" and not "secret". :)

Fixed.  :-)

> In the case of the checkboxes, if you check two boxes and use [EMAIL 
> PROTECTED]
> fieldValue will only show the first value. That would need to go into the
> array case like the select-multiple. But, if there is only one box checked
> (or just one box with that name) should it return a simple value or an array
> with one value? If it sometimes returns an array and sometimes not, that
> would complicate using the return value.

Hmmm, good point.  Like Jörn said, maybe it's best to always return an
array for checkboxes?


> Selectors that select multiple form elements will only return the first
> value for fieldValue, but serialize all the values. That's a more general
> case of the checkbox dilemma above. Methods like .attr and .css escaped from
> that by only dealing with the first element in the jQuery object, but that
> won't work here, at least for some form element types.

Agreed.  I don't like the disconnect in that scenario but I'm not sure
there is a better way.  fieldValue() (or "val()") are really meant for
returning the value of a single element.  But fieldSerialize() feels
like it ought to serialize everything.

Mike

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to