evibesmusic
asked on
How to append the selected date to a hidden input using jquery ui datepicker?
Experts,
When using the jquery ui datepicker, I'd like to append the date the user selects to a hidden input field so that I can pass the value upon form submission. Any assistance you could provide would be much appreciated.
Here's my fiddle which shows my current working code:
http://jsfiddle.net/bdbarrera/tf1vrf0v/
Just not sure how to modify the javascript to grab the date once it is selected?
Cheers!
When using the jquery ui datepicker, I'd like to append the date the user selects to a hidden input field so that I can pass the value upon form submission. Any assistance you could provide would be much appreciated.
Here's my fiddle which shows my current working code:
http://jsfiddle.net/bdbarrera/tf1vrf0v/
Just not sure how to modify the javascript to grab the date once it is selected?
Cheers!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Daft question for you: why have a hidden field and not just capture the date selected from the date field on form submission?
ASKER
@All:
Thank you very much for the assistance. Much appreciated.
Thank you very much for the assistance. Much appreciated.