Easy Tutorial
❮ Prop Img Width Met Document Queryselector ❯

FileUpload disabled Attribute


Example

Example 1

Disable the FileUpload button:

Output result:


Definition and Usage

The disabled attribute can set or return whether the file upload button is usable.

A disabled input element is unusable and un-clickable. The disabled attribute can be set to keep a user from using the input element until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript is required to remove the disabled value, and make the input element usable.

Syntax

Set the disabled attribute:

Return the disabled attribute:


Browser Support

All major browsers support the disabled attribute.

❮ Prop Img Width Met Document Queryselector ❯