HTML | DOM Input FileUpload disabled Property
The Input FileUpload disabled property in HTML DOM used to set or return whether a file upload field must be disabled, or not.
A disabled field is unusable and un-clickable. It is a boolean attribute and used to reflect the HTML Disabled attribute. It is usually rendered in grey color by default in all the Browsers.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
- Return the disabled property:
- Set the disabled property:
- true: It defines that the FileUpload field is disabled
- false: It has a default value. It defines that the FileUpload field is not disabled
Return Value: It returns a boolean value which represents that the Input FileUpload field is disabled or not.
Example-1: Return FileUpload property
Example-2: Set the FileUpload property
- Google Firefox
- Mozilla Firefox