When serializing with jQuery, disabled inputs are not taken into account.
However, sometimes, for example with the demo, an input is disabled to disallow user modification why it does contain an value which should be serialized.
A normal jQuery workaround is to enable all inputs prior to serialization to include all disabled values.
Personally, I disagree with such a implementation, because input values which should not be serialized will end up into the serialization.
Proposal:
Add a data-serialize="1" or similair option to the input fields to include this inputs always when serializing when they are disabled or not.
When serializing with jQuery, disabled inputs are not taken into account.
However, sometimes, for example with the demo, an input is disabled to disallow user modification why it does contain an value which should be serialized.
A normal jQuery workaround is to enable all inputs prior to serialization to include all disabled values.
Personally, I disagree with such a implementation, because input values which should not be serialized will end up into the serialization.
Proposal: Add a
data-serialize="1"
or similair option to the input fields to include this inputs always when serializing when they are disabled or not.