diff tests/cselect.ur @ 799:9330ba3a2799

cselect.onchange
author Adam Chlipala <adamc@hcoop.net>
date Thu, 14 May 2009 11:04:56 -0400
parents 2c463eee89fa
children
line wrap: on
line diff
--- a/tests/cselect.ur	Thu May 14 10:31:11 2009 -0400
+++ b/tests/cselect.ur	Thu May 14 11:04:56 2009 -0400
@@ -1,7 +1,7 @@
 fun main () =
     s <- source "";
     return <xml><body>
-      <cselect source={s}>
+      <cselect source={s} onchange={v <- get s; alert ("Now it's " ^ v)}>
         <coption>Wilbur</coption>
         <coption>Walbur</coption>
       </cselect>