Submit disabled property
The Submit object
Example
Example 1
Disable the submit button:
Output result:
Try it »
Definition and Usage
The disabled property can be set or returned to indicate whether the confirm button is disabled.
A disabled element is neither usable nor clickable. The disabled attribute can be set until some other condition is met (such as selecting a checkbox, etc.).
Syntax
Set the disabled attribute:
element
.disabled=true|false
Return the disabled attribute:
element
.disabled
Browser support





All major browsers support the disabled attribute
The Submit object