diff tests/radio.lac @ 153:cfe6f9db74aa

radio and radioOption
author Adam Chlipala <adamc@hcoop.net>
date Thu, 24 Jul 2008 11:10:23 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/radio.lac	Thu Jul 24 11:10:23 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>
+                <radio{#A}>
+                        <li> <radioOption value="A"/>A</li>
+                        <li> <radioOption value="B"/>B</li>
+                </radio>
+                <submit action={handler}/>
+        </lform>
+</body></html>