![]() |
| > Home > Documentation > Latest documentation > Interchange tags > selected |
|
selectedThis tag provides a "memory" for HTML <select> option lists. Summary
ExampleTag expansion example
DescriptionThis tag provides a "memory" for HTML <select> option lists. The similar [checked] tag does the same, but for the HTML radio buttons and checkboxes.
This will output "selected="selected"" if the "foo" value is equal to the specified value parameter. The match will not be case sensitive unless the optional case=1 parameter is used. Use the default parameter to specify that this option should be marked "selected" if the named value variable is not set at all. ParametersnameThe name of the CGI/value. valueThe value to test against. defaultSpecify that this option should be marked as "selected" if the named value is not set at all. caseSet to a true value to perform case-sensitive matches. cgiBy default, the $Values space (i.e. [value foo]) is selected. Use this parameter if you want to use the volatile $CGI space (i.e. [cgi foo]). multipleCheck for multiple (stacked) values, separated by an ASCII NUL character ("\0" in Perl).
|
| Home | Legal nonsense | Privacy policy | Contact us |