最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

VALUE Attribute | value Property

Internet Development Index

Sets or retrieves the value which is returned to the server when the form control is submitted.

Syntax

HTML<ELEMENT VALUE = sValue... >
Scriptingobject.value [ = sValue ]

Possible Values

sValueString that specifies or receives the value of a control object which is passed as a name/value pair to the server, when an object is submitted.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

Individual control objects return a value to the server only if they have been selected by the user.

You may pass server-friendly data directly to the server without confusing the user. The user sees only the innerText displayed, and not the value.

Example

This example sets the value for each option element to a supply stock number.

<SCRIPT>
<script>
function fnShowText(){
/* Use the selectedIndex property of the SELECT control
to retrieve the text from the options collection. */
var sText = "Stock Number = " + oSel.options(oSel.selectedIndex).value;
alert(sText);
}
</script>
<SELECT ID="oSel" onchange = "fnShowText()">
<OPTION VALUE="STK#45">Item One - Basketball</OPTION>
<OPTION VALUE="STK#347">Item Two - Baseball</OPTION>
<OPTION VALUE="STK#67">Item Three - Hockey Puck</OPTION>
</SELECT>
</SCRIPT>

Standards Information

This property is defined in HTML 3.2 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

OPTION, SELECT

See Also

input
镇巴县| 将乐县| 金昌市| 涟水县| 乐昌市| 资兴市| 常宁市| 邹平县| 铜梁县| 芦山县| 潢川县| 东辽县| 三江| 临泽县| 淳化县| 平江县| 临泉县| 延庆县| 衡南县| 商都县| 若尔盖县| 宜宾市| 凌源市| 青铜峡市| 于田县| 汶上县| 山阴县| 西平县| 新河县| 新乡市| 疏勒县| 虹口区| 绵竹市| 沿河| 泌阳县| 曲水县| 大宁县| 宣城市| 广安市| 西乡县| 黎城县|