Hullo, I am working with a datepicker that allows users to enter a date schedule for given tasks.
However, I want the dates that have passed to be disabled from the datepicker, so that the user only selects a future date.
Here is what I am using currently;
<script type="text/javascript">
$(function() {
//var altFormat = $( "#datepicker" ).datepicker( "option", "altFormat" );
$( "#datepicker" ).datepicker({ dateFormat: 'yy-mm-dd',changeYear:true,changeMonth:true,yearRange:'1900:2002'});
//getter
var dateFormat = $( "#datepicker" ).datepicker( "option", "dateFormat" );
//setter
$( "#datepicker" ).datepicker( "option", "dateFormat", 'yy-mm-dd' );
});