Hi there,
this is intentional. only "successful" controls, as defined by the
W3C, are serialized.
For your reference (emphasis mine):
A successful control is "valid" for submission. Every successful
control has its control name paired with its current value as part
of the submitted form data set. A successful control must be defined
within a FORM element and must have a control name.
However:
• Controls that are disabled cannot be successful.
• If a form contains more than one submit button, only the
activated submit button is successful.
• All "on" checkboxes may be successful.
• For radio buttons that share the same value of the name
attribute, only the "on" radio button may be successful.
• For menus, the control name is provided by a SELECT element and
values are provided by OPTION elements. Only selected options may be
successful. When no options are selected, the control is not
successful and neither the name nor any values are submitted to the
server when the form is submitted.
• The current value of a file select is a list of one or more file
names. Upon submission of the form, the contents of each file are
submitted with the rest of the form data. The file contents are
packaged according to the form's content type.
• The current value of an object control is determined by the
object's implementation.
If a control doesn't have a current value when the form is
submitted, user agents are not required to treat it as a successful
control.
There are a couple other caveats that I didn't paste here. For the
full deal, follow this link:
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2
--Karl
____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Sep 16, 2009, at 7:31 AM, nowotny wrote:
Hello.
I noticed that serializeArray() method does only include those
elements that does not have the 'disabled' attribute... I wonder if
it's intentional or am I doing something wrong...?
--
nowotny