HTMLOptionElement

Overview

The HTMLOptionElement interface represents <option> elements and inherits all classes and methods of the HTMLElement interface.

Location

 

defaultSelected

 

property defaultSelected: Boolean read write;

 

Boolean defaultSelected { get; set; }

 

var defaultSelected: Boolean { get{} set{} }

 

Boolean defaultSelected { __get; __set; }

 

Property defaultSelected() As Boolean

disabled

 

property disabled: Boolean read write;

 

Boolean disabled { get; set; }

 

var disabled: Boolean { get{} set{} }

 

Boolean disabled { __get; __set; }

 

Property disabled() As Boolean

form

 

property form: HTMLFormElement read;

 

HTMLFormElement form { get; }

 

var form: HTMLFormElement { get{} }

 

HTMLFormElement form { __get; }

 

ReadOnly Property form() As HTMLFormElement

HTMLOptionElement

Is a constructor creating an HTMLOptionElement object. It has four values: the text to display, text, the value associated, value, the value of defaultSelected, and the value of selected. The last three values are optional.

 

method HTMLOptionElement: HTMLOptionElement

 

HTMLOptionElement HTMLOptionElement()

 

func HTMLOptionElement() -> HTMLOptionElement

 

HTMLOptionElement HTMLOptionElement()

 

Function HTMLOptionElement() As HTMLOptionElement

index

 

property index: Int32 read;

 

Int32 index { get; }

 

var index: Int32 { get{} }

 

Int32 index { __get; }

 

ReadOnly Property index() As Int32

label

 

property label: String read;

 

String label { get; }

 

var label: String { get{} }

 

String label { __get; }

 

ReadOnly Property label() As String

selected

 

property selected: Boolean read write;

 

Boolean selected { get; set; }

 

var selected: Boolean { get{} set{} }

 

Boolean selected { __get; __set; }

 

Property selected() As Boolean

text

 

property text: String read write;

 

String text { get; set; }

 

var text: String { get{} set{} }

 

String text { __get; __set; }

 

Property text() As String

value

 

property value: String read write;

 

String value { get; set; }

 

var value: String { get{} set{} }

 

String value { __get; __set; }

 

Property value() As String

 

defaultSelected

 

property defaultSelected: Boolean read write;

 

Boolean defaultSelected { get; set; }

 

var defaultSelected: Boolean { get{} set{} }

 

Boolean defaultSelected { __get; __set; }

 

Property defaultSelected() As Boolean

disabled

 

property disabled: Boolean read write;

 

Boolean disabled { get; set; }

 

var disabled: Boolean { get{} set{} }

 

Boolean disabled { __get; __set; }

 

Property disabled() As Boolean

form

 

property form: HTMLFormElement read;

 

HTMLFormElement form { get; }

 

var form: HTMLFormElement { get{} }

 

HTMLFormElement form { __get; }

 

ReadOnly Property form() As HTMLFormElement

index

 

property index: Int32 read;

 

Int32 index { get; }

 

var index: Int32 { get{} }

 

Int32 index { __get; }

 

ReadOnly Property index() As Int32

label

 

property label: String read;

 

String label { get; }

 

var label: String { get{} }

 

String label { __get; }

 

ReadOnly Property label() As String

selected

 

property selected: Boolean read write;

 

Boolean selected { get; set; }

 

var selected: Boolean { get{} set{} }

 

Boolean selected { __get; __set; }

 

Property selected() As Boolean

text

 

property text: String read write;

 

String text { get; set; }

 

var text: String { get{} set{} }

 

String text { __get; __set; }

 

Property text() As String

value

 

property value: String read write;

 

String value { get; set; }

 

var value: String { get{} set{} }

 

String value { __get; __set; }

 

Property value() As String

 

HTMLOptionElement

Is a constructor creating an HTMLOptionElement object. It has four values: the text to display, text, the value associated, value, the value of defaultSelected, and the value of selected. The last three values are optional.

 

method HTMLOptionElement: HTMLOptionElement

 

HTMLOptionElement HTMLOptionElement()

 

func HTMLOptionElement() -> HTMLOptionElement

 

HTMLOptionElement HTMLOptionElement()

 

Function HTMLOptionElement() As HTMLOptionElement