I can\'t find a definitive answer to how to use the disabled property to disable form elements in javascript.
Some places say it\'s a simple boolean. Other\'s say to
The existence of the property is enough to trigger the disabled state.
If you must set a value for the property then it should be the same as the property name e.g disabled="disabled".
I'll try to find some documentation on the specific behaviours of browsers and the relevant specs.
--edit--
The HTML5 spec covers boolean attributes, such as disabled, here: http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#boolean-attributes
In practice, web browsers will ignore the assigned value and simply look for the presence of the attribute.