[html-formfu] Date field using Javascript date picker?

Michele Beltrame mb at cattlegrid.info
Thu Jul 17 08:24:13 BST 2008

Hi Thomas!

> > $(document).ready(function() {
> >     $("input[@name=mydate]").datePicker();
> > });
> So just use a plain Text field with some fitting validators, and let 
> whatever JS thing one is using fill in a value into the field?

Yes. You might also want to configure the date picker widget to use the
date/time structure you use so it both parses and writes it as it should

You might also want to set the field as readonly if you don't want the
user to input maybe-incorrect data by hand.


Michele Beltrame
ICQ 76660101 - MSN mb at italpro.net

More information about the HTML-FormFu mailing list