OptionElement

OptionElement class

The OptionElement represents a wrapper that is associated with the HTMLOptionElement

public class OptionElement : FormElement<HTMLOptionElement>

Properties

Name Description
Disabled { get; set; } The control is unavailable in this context. See the disabled attribute definition in HTML 4.01.
ElementType { get; } Gets the type of the element.
HtmlElement { get; }
virtual Id { get; set; } Gets or sets the identifier of the form element.
Label { get; set; } Option label for use in hierarchical menus. See the label attribute definition in HTML 4.01.
virtual Name { get; set; } Gets or sets the name of the form element.
Selected { get; set; } Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.
Text { get; set; } This attribute represents the text content of this node and its descendants.
override Value { get; set; } The current form control value. See the value attribute definition in HTML 4.01.

See Also