[html-formfu] Date field using Javascript date picker?
Thomas Klausner
domm at cpan.org
Mon Jul 14 14:55:21 BST 2008
Hi!
On Mon, Jul 14, 2008 at 09:07:27AM +0200, Michele Beltrame wrote:
> Hi Thomas!
>
> > Has anybody already did a Date field that's not using the current
> > three-field aproach, but rather some Javascript powered date-picker
> > widget?
>
> Carl already replied you properly. I just wanted to add that I usually
> keep JavaScript things aside from form generation, and it isn't much of
> an hassle. With jQuery (and I think with most other frameworks) it's as
> easy as:
>
> $(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?
--
#!/usr/bin/perl http://domm.plix.at
for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
More information about the HTML-FormFu
mailing list