Input Radio disabled attribute
Definition and Usage
disabled
Sets or returns whether the radio 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 attribute reflects the HTML disabled attribute.
See also:
HTML Reference Manual:HTML <input> disabled প্রতিযোগিতা
Example
Example 1
Disable radio button:
document.getElementById("cats").disabled = true;
Example 2
Check if the radio button is disabled:
var x = document.getElementById("myRadio").disabled;
Example 3
Disable and enable radio button:
function disable() { document.getElementById("myRadio").disabled = true; } function undisable() { document.getElementById("myRadio").disabled = false; }
Syntax
Return disabled attribute:
radioObject.disabled
set disabled attribute:
radioObject.disabled = true|false
বৈশিষ্ট্য মান
মান | বর্ণনা |
---|---|
true|false |
নিষ্ক্রিয় করা উচিত কি না বলে নির্দেশ করে
|
কঠিন তথ্য
ফিরিয়ে দাও: | বুল মান, যদি এককচিহ্নিত বটন নিষ্ক্রিয় থাকে, তবে ফিরিয়ে দাও true ; না হলে ফিরিয়ে দাও false 。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সহযোগিতা | সহযোগিতা | সহযোগিতা | সহযোগিতা | সহযোগিতা |