Trigger jQueryUI datePicker on button click, send result to disabled input field
Posted
by Enrique
on Stack Overflow
See other posts from Stack Overflow
or by Enrique
Published on 2010-04-09T23:04:29Z
Indexed on
2010/04/09
23:13 UTC
Read the original article
Hit count: 358
Hi
I've been searching for a way to do this, but could not find anything
I want to have a:
a disabled input text field, called #XX. This input will store the selected value from datepicker (as this input is disabled I won't be able to use this to trigger the datePicker)
A button, besides #XX. When user clicks this button, datePicker will show. User will select the date, and this date will be assigned to disabled input #XX.
I want this so user can't change manually -by typing crap- the selected date
Also, should I validate if date was entered using #XX.val()? or is there a better way?
Thanks
© Stack Overflow or respective owner