form2js icon indicating copy to clipboard operation
form2js copied to clipboard

Fix so disabled controls are totally ignored from built up object model

Open mcintyre321 opened this issue 13 years ago • 2 comments

...put values, so shouldn't be included in results

https://github.com/maxatwork/form2js/issues/36

mcintyre321 avatar May 16 '12 16:05 mcintyre321

Given a form containing

<input type="hidden" name="x" value="hello" />
<input type="hidden" name="x" value="hello" disabled="disabled" />

form2js will currently return a null value for x - disabled controls should be totally ignored and instead form2js should return {x:"hello"}

mcintyre321 avatar May 16 '12 16:05 mcintyre321

Nice fix. I checked this into my fork.

lookfirst avatar Jun 26 '12 16:06 lookfirst