Name

disabled — NN n/a IE 4 DOM 1

Synopsis

Read/Write

Normally, this property determines whether the element is available for user interaction. Its importance for a hidden element is that when this property is set to true, the element’s name/value pair is not submitted with the form.

Example

document.forms[0].elements[3].disabled = true

Value

Boolean value: true | false.

Default

false

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.