Last active
October 13, 2018 01:22
-
-
Save kenmasters/b40b53fc8c9d79ea50ac232023c8df77 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: <input type="text" id="txtFromDate" /> | |
To: <input type="text" id="txtToDate" /> | |
$(document).ready(function(){ | |
$("#txtFromDate").datepicker({ | |
numberOfMonths: 2, | |
onSelect: function(selected) { | |
$("#txtToDate").datepicker("option","minDate", selected) | |
} | |
}); | |
$("#txtToDate").datepicker({ | |
numberOfMonths: 2, | |
onSelect: function(selected) { | |
$("#txtFromDate").datepicker("option","maxDate", selected) | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment