Option selected attribute
Definition and Usage
selected
Set or return the selected state of the option.
See also:
HTML Reference Manual:HTML <option> selected অপারেশন
HTML Reference Manual:HTML <option> ট্যাগ
Example
Example 1
Change the selected option in the dropdown list to "orange":
document.getElementById("orange").selected = true;
Example 2
Check if the "banana" option in the dropdown list is selected:
var x = document.getElementById("banana").selected;
Syntax
return selected attribute:
optionObject.selected
set selected attribute:
optionObject.selected = true|false
বৈশিষ্ট্য মান
মান | বর্ণনা |
---|---|
true|false |
ডাউন লিস্টের অপশনটি নির্বাচিত হওয়া উচিত কি না নির্দেশ করে
|
প্রযুক্তিগত বিবরণ
ফলাফল | বলুয়ান মান, যদি অপশন নির্বাচিত হয়, তবে true ফিরে আসে; না তবে false ফিরে আসে。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |