I have enabled jquery date range picker on two input boxes to select start date & end date, by default value of startDateInput=Start Date and endDateInput=End Date. But when start input box is clicked and start date is selected, value written in endDateInput which is equal to End Date is changed to null. Script which i am using is below:
startDate(Name of input box for selecting Start Date)
endDate(Name of input box for selecting End Date)
$(function () {
$("#startDate").datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
minDate: new Date(2012, 11 - 1, 27),
maxDate: -1,
onClose: function (selectedDate) {
$("#endDate").datepicker("option", "minDate", selectedDate);
}
});
$("#endDate").datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 1,
minDate: new Date(2012, 11 - 1, 28),
maxDate: -1,
onClose: function (selectedDate) {
$("#startDate").datepicker("option", "maxDate", selectedDate);
}
});
});
If you were talking about water marks, then you can try this: