Select
After pressing the 'accept' key then goto the show card.
proc main {} {
_wml
_card
_do "type='accept' label='Show'"
__go "href='#show'"
do_
set multiple selection with variable color. Value may be 'red', 'green', or 'blue'.
_p
quote "Select Color"
_select "name='color' multiple='true' tabindex='1'"
_optgroup "title='basic'"
_option "value='red'"
quote "red"
option_
_option "value='green'"
quote "green"
option_
_option "value='blue'"
quote "blue"
option_
optgroup_
options are grouped by _optgroup command with title 'mix'.
_optgroup "title='mix'"
_option "value='purple'"
quote "purple"
option_
_option "value='yellow'"
quote "yellow"
option_
optgroup_
select_
p_
card_
this card shows the color value.
_card "id='show'"
_p {align='center'}
quote {color is $color}
p_
card_
wml_
}
execution of main.
WMLHeader select.wml
main
|