One possibility
option
The option element provides one possible option from a list of possibilities.
This element may be used within either a datalist element or a select element.
Properties
- value
- When present, this is the value that will be used for submission when this option is selected by the user.
- When not present, the text of the option will be used for submission when this option is selected by the user.
- disabled
- The input should be visible, but unchangable. Its value will not be included in the submission.
- selected
- When present on an option, it is in the "selected" state.
Examples
Complements
- option
- The option element provides one possible option from a list of possibilities.
- option
- The option element provides one possible option from a list of possibilities.