form2js
form2js copied to clipboard
Fix so disabled controls are totally ignored from built up object model
...put values, so shouldn't be included in results
https://github.com/maxatwork/form2js/issues/36
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"}
Nice fix. I checked this into my fork.