JavaScripture
Contribute via GitHub
Feedback
Option
Constructors
DOM API
All API
No API set selected.
Option
:
HTMLOptionElement
constructor
Alternative way to construct an
HTMLOptionElement
instead of using
document.createElement('option')
.
Spec
Constructors
new
Option
() :
Option
new
Option
(
text
:
String
) :
Option
new
Option
(
text
:
String
,
value
:
String
) :
Option
new
Option
(
text
:
String
,
value
:
String
,
defaultSelected
:
Boolean
) :
Option
new
Option
(
text
:
String
,
value
:
String
,
defaultSelected
:
Boolean
,
selected
:
Boolean
) :
Option
home
license
contribute
feedback
toggle light/dark mode
Copyright © JavaScripture Contributors