Option value property
Definition and Usage
value
Property sets or returns the value of the option (the value sent to the server when the form is submitted).
Tip:If no value is specified for the option element value propertyThen, when submitting the container form, the text content will be sent to the server.
See also:
HTML Reference Manual:HTML <option> value এট্রিবিউট
HTML Reference Manual:HTML <option> ট্যাগ
Example
Example 1
Prompt the value of the selected option in the dropdown list:
var x = document.getElementById("mySelect").selectedIndex; alert(document.getElementsByTagName("option")[x].value);
Example 2
Change the value of the specific option element:
document.getElementById("myOption").value = "newValue";
Syntax
return value property:
optionObject.value
নির্ধারণ value এট্রিবিউট:
optionObject.value = value
এট্রিবিউট মান
মান | বর্ণনা |
---|---|
value | সার্ভারে পাঠানো হবে এমন মান |
প্রযুক্তিগত বিবরণ
ফলাফল: | শব্দতালিকা মান, এটি option ইউনিটের value এট্রিবিউটের মান নির্দেশ করে。 |
---|
ব্রাউজার সমর্থন
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | অপেরা |
---|---|---|---|---|
চ্রোম | এডজ | ফায়ারফক্স | স্যাফারি | অপেরা |
সমর্থন | সমর্থন | সমর্থন | সমর্থন | সমর্থন |