Skip to main content
disabled property

Sets or gets the value that indicates whether the user can interact with the object.

Syntax

JavaScript

p = object.disabled

 

Property values

Type: Boolean

true (true)

Element is disabled.

false (false)

Element is not disabled.

See also

body
caption
dd
div
dt
form
label
legend
li
ol
p
ul