PDA

View Full Version : Autopopulating date inputs from another


J_mo
09-02-2010, 03:48 PM
Hi,

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

http://www.quickcashpayday.co.uk/apply.aspx

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!!!
Thanks
Phil

Corrosive
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 :)

J_mo
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??

Corrosive
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?

edbr
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