Input Search disabled attribute
Definition and Usage
disabled
Attribute to set or return whether the search field 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 attribute reflects the HTML disabled attribute.
See also:
HTML Reference Manual:HTML <input> disabled এস্ট্রাইক্ট
Example
Example 1
Disable the search field:
document.getElementById("mySearch").disabled = true;
Example 2
Check if the search field is disabled:
var x = document.getElementById("mySearch").disabled;
Example 3
Disable and enable the search field:
function disableBtn() { document.getElementById("mySearch").disabled = true; } function undisableBtn() { document.getElementById("mySearch").disabled = false; }
Syntax
Return disabled attribute:
searchObject.disabled
set disabled attribute:
searchObject.disabled = true|false
প্রতিভাতি
মান | বর্ণনা |
---|---|
true|false |
সার্চ ফিল্ডকে নিষ্ক্রিয় করা উচিত কি না নির্ধারণ করা
|
প্রযুক্তিগত বিবরণ
ফিরিয়ে দেওয়া মান: | বুল মান, যদি সার্চ ফিল্ড নিষ্ক্রিয় থাকে, তবে ফিরিয়ে দেওয়া হবে true ;অন্যথায় ফিরিয়ে দেওয়া হবে false 。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
---|---|---|---|---|
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | ওপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |