Hi everyone,

so I'm using the jQuery UI datepicker and have gone through the documentation but still cannot customize the calendar to my needs.

1) I'm trying to disable the previous months – only the current and future months need to be shown.
2) I'd like the past days in the current month to be “unselectable” - they should still be visible, perhaps of a lighter colour but they cannot be selected.

Please let me know if you can assist me with this.

Thank you.


Code:
<script type="text/javascript">
$(function() {
$( "#start" ).datepicker({ 
dateFormat: "DD, d MM, yy ",
numberOfMonths: 2,
showAnim: 'blind',
showOn: "both",
buttonImageOnly: true,
showButtonPanel: true
}).val ()
});
$(function() {
$( "#end" ).datepicker({ 
dateFormat: "DD, d MM, yy ",
numberOfMonths: 2,
showAnim: 'blind',
showOn: "both",
buttonImageOnly: true,
showButtonPanel: true
}).val ()
});
</script>