<script type="text/javascript">
$(function () {
$("#<%=TextBox1.ClientID%>").datepicker({
changeMonth: true,
changeYear: true,
onSelect: function(selected) {
$("#<%=TextBox2.ClientID%>").datepicker("option","minDate", selected)
}
});
$("#<%=TextBox2.ClientID%>").datepicker({
changeMonth: true,
changeYear: true,
onSelect: function(selected) {
$("#<%=TextBox1.ClientID%>").datepicker("option","maxDate", selected)
}
});
});
</script>Here's a quick example on how to disable previous dates based on the date selected from the first calendar date.
Here's a quick example on how to disable previous dates based on the date selected from the first calendar date. You can see the actual demo here: http://jsfiddle.net/j3w726r0/
