Read the article tz_select - Display an HTML select menu of time zones with Lasso.
[tz_select]
returns an HTML select menu of all known time zones, grouped
into US common, continents, regions, UTC, and manual offsets.
It is used in the demos for tz_convert and countdown.
Demo.
tz_select
requires one parameter and a second parameter is optional.
-name
is required and must be a string type. Its value must be the name of
the select HTML menu.
-selected
is optional but must be a string type. Its value should be the
value of the selected time zone.
<div>
<label>Timezone</label>
[tz_select(-name='timezone', -selected=action_param('timezone'))]
</div>
Output is a select HTML menu.
The repository contains the tag [tz_select]
in a file named
tz_select.lasso
and a directory tz_select_demo
containing the demo.
In this directory there is a web page named index.lasso
containing the
tz_select
tag.
There are no additional requirements.