view tests/checkbox.ur @ 2074:e48e09a1f583

HTML5 input attributes: placeholder, required, autofocus; email input type (without cformTag equivalent)
author Sergey Mironov <grrwlf@gmail.com>
date Sun, 12 Oct 2014 10:03:36 +0000
parents 71bafe66dbe1
children
line wrap: on
line source
val handler = fn x => <html><body>
        {if x.A then cdata "Yes" else cdata "No"}
</body></html>

val main = fn () => <html><body>
        <lform>
                <checkbox{#A}/> How about it?<br/>
                <submit action={handler}/>
        </lform>
</body></html>