Hi,
first you need to get the js reference to the calendar control...
The js variable to use is named like calendar_XXX where XXX
is the id of your DatePicker control.
After you know that, you can do:
calendar_XXX.setSelectedDate('15 Mar 2008')
On Thu, Mar 20, 2008 at 1:21 PM, Andy Pahne <[EMAIL
I wonder how to set the date of a DatePicker in Javascript.
I tried sth. like
document.forms[0].departureDatePicker.value='x.x.x'
which works partly. The text field is updated, but when I click on the
DatePicker icon the picker is still set to the old value.
I had a look at DatePicker.js