[jQuery] Re: jQuery Form Plugin ajax submit

2009-08-26 Thread Mike Alsup

 Using the following code:

 $('.input_all').attr(disabled, disabled);

 for input texts with the class=input_all seems to break jQuery forms
 ajax submit.

 How can I fix this?


If you are expecting disabled inputs to be submitted then that is not
really broken - disabled inputs should *not* be submitted (per the
HTML spec).  If you really don't want to adhere to the spec and you
want all inputs to be submitted, regardless of whether or not they are
successful[1], then you can change line 423 of the plugin to this:

var v = $.fieldValue(el, false);

[1] http://www.w3.org/TR/html401/interact/forms.html#h-17.13.2


[jQuery] Re: jQuery Form Plugin ajax submit

2009-08-26 Thread Jules

To protect the input fields, use readOnly instead of disabled and the
value will be included.

On Aug 21, 9:39 pm, Chris Hall sifuh...@gmail.com wrote:
 Using the following code:

 $('.input_all').attr(disabled, disabled);

 for input texts with the class=input_all seems to break jQuery forms
 ajax submit.

 How can I fix this?