maxatwork / form2js

Javascript library for collecting form data
http://maxatwork.github.com/form2js/
MIT License
640 stars 137 forks source link

<input disabled="disabled" /> not being captured #14

Open boxxxie opened 13 years ago

boxxxie commented 13 years ago

when i set input boxes to disabled, i still want to capture the value of the box.

maxatwork commented 13 years ago

Disabled field not sent on form submission, so it's not serialized. However you can use callback function which returns name/value pair for disabled fields (see "Custom Fields" example).

Probably it makes sense to add such option (skipDisabled).