HTMLSelect[options,name]
returns an HTML select tag with the given set of options.
HTMLSelect[options,name,default]
sets the default.


HTMLSelect
HTMLSelect[options,name]
returns an HTML select tag with the given set of options.
HTMLSelect[options,name,default]
sets the default.
Details
- The HTML functions are contained in a package, MSP`HTML`, which is loaded as part of the Wolfram Web Engine layout.
- The function HTMLSelect provides a useful way to generate select tags with MSP.
- It is also possible to set selections by using the option SelectedOptions.
- HTMLTableForm takes the following options:
-
"SelectedValues" initial selection based on values "SelectedOptions" initial selection based on options "OptionAttributes" attributes to apply to the HTML select tag
Examples
Basic Examples (1)
You can demonstrate how the function works by loading the package:
The function HTMLSelect provides a useful way to generate select tags with MSP. It takes a list of the different options and the name to be used when the selection is submitted. Its operation is shown here:
It is also possible to set selections by using the option SelectedOptions. In this example, the option labeled "a" will be selected:
By default, the values for the option tags are chosen automatically. It is also possible to set these with an argument:
The option SelectedValues can be used to set a selection based on the values:
The selection options can take a list of values to set multiple selections:
If no values are given, the SelectedValues option can use the numerical values:
Text
Wolfram Research (1996), HTMLSelect, Wolfram Language function, https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLSelect.html.
CMS
Wolfram Language. 1996. "HTMLSelect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLSelect.html.
APA
Wolfram Language. (1996). HTMLSelect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLSelect.html
BibTeX
@misc{reference.wolfram_2025_htmlselect, author="Wolfram Research", title="{HTMLSelect}", year="1996", howpublished="\url{https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLSelect.html}", note=[Accessed: 25-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_htmlselect, organization={Wolfram Research}, title={HTMLSelect}, year={1996}, url={https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLSelect.html}, note=[Accessed: 25-August-2025]}