Try this:
$('.pickupDate').change(function() {
var date2 = $('.pickupDate').datepicker('getDate', '+1d');
date2.setDate(date2.getDate()+1);
$('.dropoffDate').datepicker('setDate', date2);
});
More Related Contents:
- jQuery Date Picker – disable past dates
- jQuery UI Datepicker – Multiple Date Selections
- Unobtrusive validation in Chrome won’t validate with dd/mm/yyyy
- How to get the selected date value while using Bootstrap Datepicker?
- Disable specific days of the week on jQuery UI datepicker [duplicate]
- jQuery UI Datepicker – Disable specific days
- jQuery UI Datepicker enable only specific days in array
- Jquery datepicker – only day and month
- Changing minDate and maxDate on the fly using jQuery DatePicker
- Jquery Date picker Default Date
- JQuery UI Datepicker, reverse the order of the year in the dropdowns
- JQuery Datepicker – no default date
- jQuery UI DatePicker – Change Date Format
- How to change the text of a button in jQuery?
- How to remove close button on the jQuery UI dialog?
- check / uncheck checkbox using jquery? [duplicate]
- jQuery UI dialog positioning
- How to draw a line between draggable and droppable?
- grouping draggable objects with jquery-ui draggable
- Twitter Bootstrap Datepicker within modal window
- Disable future dates after today in Jquery Ui Datepicker
- How can I enable jquery validation on readonly fields?
- Highlight dates in specific range with jQuery’s datepicker
- bootstrap-typeahead.js add a listener on select event
- how to get value of selected item in autocomplete
- Draggable revert if outside this div and inside of other draggables (using both invalid and valid revert options)
- Sorting Autocomplete UI Results based on match location
- jQuery UI: Datepicker set year range dropdown to 100 years
- How to add jQueryUI library in MVC 5 project?
- Selecting a jQuery Tab using a parameter in the URL