HTML button disabled Attribute
Definition and Usage
The disabled attribute specifies that the button is disabled.A disabled button is unusable and un-clickable.
This attribute is often used for keeping the user from submitting a form before all required fields are filled out.
Syntax
<button disabled="disabled"> |
Attribute Values
Value | Description |
---|---|
disabled | Specifies that the button is disabled. |
Browser Support
The attribute is supported in all major browsers.Note: The attribute is incorrectly handled in Safari version 2.
HTML button disabled Attribute
Reviewed by 1000sourcecodes
on
06:18
Rating: