Mercurial > urweb
diff tests/select.lac @ 154:e2b185379592
HTML select
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 24 Jul 2008 11:16:54 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/select.lac Thu Jul 24 11:16:54 2008 -0400 @@ -0,0 +1,13 @@ +val handler = fn x => <html><body> + You entered: {cdata x.A} +</body></html> + +val main = fn () => <html><body> + <lform> + <lselect{#A}> + <loption value="A">A</loption> + <loption value="B">B</loption> + </lselect> + <submit action={handler}/> + </lform> +</body></html>