view tests/strcspn.ur @ 2163:598a5f781d39

Add onChange handler to radioOption
author Julian Squires <julian@cipht.net>
date Thu, 07 May 2015 16:12:06 -0400
parents 446e73902b09
children
line wrap: on
line source
fun main () : transaction page =
    s <- source "";
    return <xml><body>
      <ctextbox source={s}/>
      <button onclick={fn _ => v <- get s; alert (show (strcspn v "0123456789"))}/>
    </body></xml>