<ao:option>

Renders an <option> tag.

Tag Information

Tag Class: com.aoapps.taglib.OptionTag
TagExtraInfo Class: com.aoapps.taglib.ElementTagTEI
Body Content: scriptless
Display Name: None
Dynamic Attributes: true

Attributes

Name Required Evaluation Type Description
id No Runtime String

The id of the element. A nested <ao:id> tag will override this value.

class No Runtime Object

The CSS class for the element. A nested <ao:class> tag will override this value.

dir No Runtime String

The dir of the element. A nested <ao:dir> tag will override this value.

style No Runtime Object

The CSS style for the element. A nested <ao:style> tag will override this value.

disabled No Runtime boolean

The disabled attribute. Accepts values of true or false. A non-empty nested <ao:disabled> tag will override this value. If disabled is true, will add the attribute as disabled="disabled", otherwise the attribute is not added.

selected No Runtime boolean

The selected attribute. Accepts values of true or false. A non-empty nested <ao:selected> tag will override this value. If selected is true, will add the attribute as selected="selected", otherwise the attribute is not added.

value No Runtime Object

The value of the option. A nested <ao:value> tag will override this value. If neither is provided, the output of the body is used with whitespace trimmed.

Variables

No Variables Defined.