Selects let buyers choose one option from an options menu. Consider select when you have 4 or more options, to avoid cluttering the interface.
optional = ?
||A unique identifier for the field. When no
||Content to use as the field label.|
||An identifier for the field that is unique within the nearest containing
||The active option for the select. This should match to one of the
||The options a buyer can select from.|
||Whether the field needs a value. This requirement adds semantic value to the field, but it will not cause an error to appear automatically. If you want to present an error when this field is empty, you can do so with the
||Whether the select can be changed.|
||An error label to present with the field.|
||A hint as to the intended content of the field.
When set to
When set to
Alternatively, you can provide an
||The text displayed in the select when no value is provided.|
||A callback that is run whenever the selected option changes. This callback is called with the string
A descriptor for selecting the data a field would like to receive during autocomplete. This attribute is modeled off of a limited set of the autocomplete values supported in browsers.
||The contact information “group” the autocomplete data should be sourced from.|