View Full Version : Autopopulating date inputs from another

09-02-2010, 03:48 PM

I have been asked to replicate a feature of a application form...


If you go to the "payday frequency" dropdown in the 2nd half of the form you will see that it auto fills the payday & next payday input fields... How can I do this??

If anyone has a plugin or tutorial that will help or even a sample of code I would be VERY grateful.

I have no idea, I haven't got round to js yet!!!

09-02-2010, 04:28 PM
Hi Phil

My favourite is; http://jqueryui.com/demos/datepicker/ I think it looks good and has a nice, smooth JQuery action :)

09-02-2010, 07:36 PM
Ok...just to clarify...

I have actually used this on my payday & next payday fields but I want these to be populated by a prior pay freq dropdown with options of

Last day of the month
Last fri of the month
Last wed of every month
etc etc

These options will then populate the payday and next payday fields.

This is possible with the jQuery datepicker??

09-03-2010, 05:59 AM
Sorry. Misunderstood what you wanted from your first post. You'll need to code that in PHP I'd have thought... DJ?

09-03-2010, 06:07 AM
you can use a date picker first one and use php or javascript to do a calculation to enter the second i would say