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

text Property

Internet Development Index

Sets or retrieves the text string specified by the option tag.

Syntax

HTMLN/A
ScriptingOPTION.text [ = sTxt ]

Possible Values

sTxtString that specifies or receives the text.

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

Assigning a value to the text property changes the text property internally, but does not cause the listed value to change. Submitting the form submits the internally stored value, not the one displayed.

Example

This example uses the text property to change the text string of each option each time the user selects an option.

<SCRIPT>
function fnShow(){
for(var i=0;i<oSel.options.length;i++){
oSel.options[i].text+=" (slugs)";
}
}
function fnFlash(){
var sQuery="";
for(var i=0;i<oSel.options.length;i++){
sQuery+=i + " - Value=" + oSel.options[i].value +
" - Text=" + oSel.options[i].text + "\n";
}
alert(sQuery);
}
</SCRIPT>
<SELECT ID=oSel onchange="fnFlash()">
<OPTION VALUE="US">Seattle
<OPTION VALUE="FRANCE">Paris
<OPTION VALUE="MEXICO">Cabo San Lucas
</SELECT>
<INPUT TYPE=button VALUE="Show Attractions" onclick="fnShow()">
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

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

Applies To

OPTION
富裕县| 汝阳县| 津南区| 五寨县| 嘉鱼县| 含山县| 广灵县| 堆龙德庆县| 肥城市| 陈巴尔虎旗| 阳信县| 常山县| 扶风县| 荔浦县| 西盟| 桂阳县| 宜宾县| 衢州市| 青海省| 兴和县| 樟树市| 息烽县| 高尔夫| 海安县| 通许县| 遂川县| 衡南县| 会理县| 阳山县| 威信县| 祁连县| 四会市| 兰溪市| 衡水市| 石林| 岳普湖县| 白山市| 麻江县| 北宁市| 莱芜市| 新干县|