Possible Duplicate:
JQuery datepicker- 2 inputs/textboxes and restricting range
Hi i have two pickers in a page
$(function() {
$( "#d1" ).datepicker({dateFormat: 'yy-mm-dd'});});
$(function() {
$( "#d2" ).datepicker({dateFormat: 'yy-mm-dd'});});
what i required is to be always #d2 > #d1
Possible duplicate of this post. Answer is perfect and educational: jQuery datepicker- 2 inputs/textboxes and restricting range