Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
09-12-2010, 07:28 PM #1
- Join Date
- Sep 2010
- Thanked 0 Times in 0 Posts
Populating an Input field with a preselected date.
Hi, This is my first post on the here so, Hi all!!
I have an issue with an online application form I am building. I need a #payfreq dropdown field to populate two inputs (#payday and #nextpayday) depending on the option selected.
The options being "last Friday of the Month", "last Thurs of the Month", "last Wed of the Month"...etc
I have used Date.js and made some variables to return the correct values
var lastFriday = Date.today().final().fri()
My JS is none existent really and in the past relied on plugins etc to help (perhaps its time to start learning!!)
I look forward to a response and thank you in advance.