Pages

Wednesday, August 8, 2012

jquery datepicker range for two text box


<script>
$(function() {
$( "#fdate" ).datepicker({
maxDate: "0",
dateFormat: 'yy-mm-dd',
onSelect: function( selectedDate ) {
$( "#tdate" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#tdate" ).datepicker({
maxDate: "0",
dateFormat: 'yy-mm-dd',
onSelect: function( selectedDate ) {
$( "#fdate" ).datepicker( "option", "maxDate", selectedDate );
}
});
});
</script>

No comments:

Post a Comment