logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 09-02-2010, 03:48 PM   #1
J_mo
 
Join Date: Aug 2009
Posts: 37
Default Autopopulating date inputs from another

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
J_mo is offline   Reply With Quote
Old 09-02-2010, 04:28 PM   #2
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Hi Phil

My favourite is; http://jqueryui.com/demos/datepicker/ I think it looks good and has a nice, smooth JQuery action
Corrosive is offline   Reply With Quote
Old 09-02-2010, 07:36 PM   #3
J_mo
 
Join Date: Aug 2009
Posts: 37
Default

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??
J_mo is offline   Reply With Quote
Old 09-03-2010, 05:59 AM   #4
Corrosive
Corrosive's Avatar
 
Join Date: Feb 2008
Location: Bristol, England
Posts: 7,103
Default

Sorry. Misunderstood what you wanted from your first post. You'll need to code that in PHP I'd have thought... DJ?
Corrosive is offline   Reply With Quote
Old 09-03-2010, 06:07 AM   #5
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

you can use a date picker first one and use php or javascript to do a calculation to enter the second i would say
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com