amoffat / bootstrap-application-wizard

MIT License
1.85k stars 388 forks source link

Serialize Enhancements #52

Closed gjrtimmer closed 10 years ago

gjrtimmer commented 11 years ago

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.

amoffat commented 11 years ago

I think your solution would work well :+1: