Input Reset disabled attribute

Definition and Usage

disabled Attribute to set or return whether the reset button should be disabled.

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

This attribute reflects the HTML disabled attribute.

See also:

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

Example

Example 1

Disable the reset button:

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

Try it yourself

Example 2

Check if the reset button is disabled:

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

Try it yourself

Example 3

Disable and enable the reset button:

function disable() {
  document.getElementById("myReset").disabled = true;
}
function undisable() {
    document.getElementById("myReset").disabled = false;
}

Try it yourself

Syntax

Return disabled attribute:

resetObject.disabled

set disabled attribute:

resetObject.disabled = true|false

এট্রিবিউট মূল্য

মূল্য বর্ণনা
true|false

এটা নিষ্ক্রিয় করা হবে কিনা নিষ্ক্রিয় রিসেট বাটনকে নির্দিষ্ট করুন

  • true - রিসেট বাটনটি নিষ্ক্রিয়
  • false - ডিফল্ট।রিসেট বাটনটি নিষ্ক্রিয় নয়

কারিগরি বিবরণ

প্রয়োজনীয়তা ফিরে আসুন: true - রিসেট বাটনটি নিষ্ক্রিয় হলে ফিরে আসুন; না তবে ফিরে আসুন false

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

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