Input FileUpload disabled attribute

Definition and Usage

disabled Property to set or return whether the file upload button should be disabled.

Disabled elements are not available and cannot be clicked. By default, disabled elements are usually displayed in gray in the browser.

This property reflects the HTML disabled attribute.

See also:

HTML Reference Manual:HTML <input> disabled এট্রিবিউট

Example

Example 1

Disable FileUpload button:

document.getElementById("myFile").disabled = true;

Try it yourself

Example 2

Check if FileUpload button is disabled:

var x = document.getElementById("myFile").disabled;

Try it yourself

Example 2

Disable and enable FileUpload button:

function disableBtn() {
  document.getElementById("myFile").disabled = true;
}
function undisableBtn() {
  document.getElementById("myFile").disabled = false;
}

Try it yourself

Syntax

Return disabled attribute:

fileuploadObject.disabled

set disabled attribute:

fileuploadObject.disabled = true|false

এট্রিবিউট মান

মান বর্ণনা
true|false

ফাইল আপলোড বাটনটিকে নিষ্ক্রিয় করা উচিত কি না নির্ধারণ করে

  • true - ফাইল আপলোড বাটনটি নিষ্ক্রিয়
  • false - ডিফল্ট।ফাইল আপলোড বাটনটি নিষ্ক্রিয় না

প্রযুক্তিগত বিবরণ

ফিরিয়ে দিয়ে: বুল মান, যদি ফাইল আপলোড বাটনটি নিষ্ক্রিয় থাকে, তবে ফিরিয়ে দিয়ে true;অন্যথায় ফিরিয়ে দিয়ে false

ব্রাউজার সমর্থন

চ্রোম এজ ফায়ারফক্স স্যাফারি ওপেরা
চ্রোম এজ ফায়ারফক্স স্যাফারি ওপেরা
সমর্থন সমর্থন সমর্থন সমর্থন সমর্থন