Mercurial > urweb
view tests/html5_forms.ur @ 2076:855d7746a084
Remove 'value' attribute of <checkbox>
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sun, 16 Nov 2014 14:06:24 -0500 |
parents | fde864eacd47 |
children | 3cd2bd4b1de0 |
line wrap: on
line source
fun handler r = return <xml><body> A: {[r.A]}<br/> B: {[r.B]}<br/> C: {[r.C]}<br/> </body></xml> fun main () = return <xml><body> <form> <textbox{#A} required placeholder="bobby"/> <textbox{#B} placeholder="soggy" autofocus/> <checkbox{#C}/> <submit action={handler}/> </form> </body></xml>