HBCMS更多的中文手册参考:

SELECTED Attribute | selected参数属性

DHTML文档教程

Sets or retrieves whether the option in the list box is the default item.

dhtml语法

HTML<OPTION SELECTED ... >
ScriptingOPTION.selected [ = bSelected ]

DHTML可能的值

bSelectedBoolean that specifies or receives one of the following values.
falseDefault. Item is not selected as the default.
trueItem is selected as the default.

The property is read/write. The property has a default value of false.

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

if the property is not set, the first item is selected by default.

the property determines whether a value is submitted with the form. if the value of the control matches the default value, the control's value is not submitted. the value is submitted only when the control's value does not match the default value.

to select an item in html, it is not necessary to set the value of the selected attribute to true. the mere presence of the selected attribute set its value to true.

是否符合公共标准

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

更多语法参考

defaultSelected