view tests/select.ur @ 1594:d9de8b3f8167

Fix completely broken manual description of 'view'
author Adam Chlipala <adam@chlipala.net>
date Mon, 14 Nov 2011 09:02:00 -0500
parents fe018cbdd41e
children
line wrap: on
line source
val handler = fn x => <xml><body>
        You entered: {cdata x.A}
</body></xml>

val main = fn () => <xml><body>
        <form>
                <select{#A}>
                        <option value="A">A</option>
                        <option value="B">B</option>
                </select>
                <submit action={handler}/>
        </form>
</body></xml>