Sets or gets the options in a dropdown.
Setting the options
property sets all the options
available to a user.
Set options
to an empty array ([]
) to remove the current dropdown options.
Getting the options
property returns the current
list of options available to a user.
You cannot modify the options array in-place. To add, change, or remove individual dropdown options:
options
property in a variable.options
property with the modified array.