second calender date is next day date of first calendar date

When I select 1st calendar date after that second calender date is same .What I need is when I select first calendar date that second calendar date is +1 in day like i select 20/04/2015 so the date of second calender is 21/04/2015 ... i want this ..please help out.. the javascript is use for this calender is below

$(function () { var dates = $("#txt_cin, #txt_cout").datepicker({ minDate: 0, defaultDate: "+0w", changeMonth: true, numberOfMonths: 2, dateFormat: "dd/mm/yy", onSelect: function (selectedDate) { var option = == "txt_cin" ? "minDate" : "maxDate", instance = $(this).data("datepicker"), date = $.datepicker.parseDate(instance.settings.dateFormat || $.datepicker._defaults.dateFormat, selectedDate, instance.settings); dates.not(this).datepicker("option", option, date); } }); });

Category:javascript Views:1 Time:2018-02-10

Related post

Copyright (C), All Rights Reserved.

processed in 0.113 (s). 11 q(s)