I have 2 textbox named as LeaveFrom & LeaveTo.In (Leavefrom)textbox i want to put a date through JQuery datepicker but In (Leaveto)textbox i want to select date of that month only selected by (Leavefrom)textbox by disabling next & Previous month & that to from selected date.
<script type="text/javascript">
$(document).ready(function() {
$('#txtDate').datepicker({
showAnim: 'slide',
dateFormat: 'dd-mm-yy',
});
$("#txtToDate").datepicker({
minDate: 0,
maxDate: "+60D",
numberOfMonths: 2,
onSelect: function (selected) {
$("#txtFromDate").datepicker("option", "maxDate", selected)
}
});
});
</script>