Input Text disabled attribute
Definition and Usage
disabled
Attribute sets or returns whether the text field is disabled.
Disabled elements are not available and cannot be clicked. By default, disabled elements are usually displayed in gray in the browser.
See also:
HTML Reference Manual:HTML <input> disabled এট্রিবিউট
Example
Example 1
Disable text field:
document.getElementById("myText").disabled = true;
Example 2
Check if the text field is disabled:
var x = document.getElementById("myText").disabled;
Example 3
Disable and enable text field:
function disableTxt() { document.getElementById("myText").disabled = true; } function undisableTxt() { document.getElementById("myText").disabled = false; }
Syntax
Return disabled attribute:
textObject.disabled
set disabled attribute:
textObject.disabled = true|false
এট্রিবিউট মান
মান | বর্ণনা |
---|---|
true|false |
টেক্সট ফিল্ডটি নিষ্ক্রিয় করা উচিত কি না নির্ধারণ করে
|
কার্যকরি বিবরণ
ফলাফল প্রত্যাহার | বুল মানো, যদি টেক্সট ফিল্ড নিষ্ক্রিয় থাকলে true তাকুল হলে false 。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |