Hi Just started to use the date picker plugin. On a form I have two
input fields, arrival and departure date.  What I'm hoping to achieve
is that when the datepicker is used to update the arrival field, then
the departure field is set to the next day.

So far I have this code snippet:

                $('#arrive').datepicker({
                        showOn: 'button',
                        buttonImage: '/images/cal.png',
                        buttonImageOnly: true,
                        dateFormat: 'D dd / mm / yy',
                        showOn: 'both',
                        dayNamesShort: ['Sunday', 'Monday', 'Tuesday', 
'Wednesday',
'Thursday', 'Friday', 'Saturday'],
                        altField: '#depart',
                        altFormat: 'D dd / mm / yy'
                });

Which updates the departure field to the same day.  Looking at the
documentation, there is an option to set defaultDate.  I was hoping to
use this (defaultDate + 1) to set the departure date.

I would appreciate any help and advice on this, and as to whether the
above approach is correct?

Thanks

Eddie

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to