Skip to content

Instantly share code, notes, and snippets.

@jobjo
Created July 21, 2011 14:36
Show Gist options
  • Save jobjo/1097317 to your computer and use it in GitHub Desktop.
Save jobjo/1097317 to your computer and use it in GitHub Desktop.
[<JavaScript>]
let InputDate () =
let inputId = NewId ()
Controls.InputDatepicker None
|> Formlet.MapElement (fun el -> Div [Attr.Id inputId] -< [el])
|>! OnAfterRender (fun el ->
JQuery.JQuery.Of("#" + inputId).Find("input").Val("").Ignore
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment