views:

35

answers:

1

Is there anyway to make a jQuery UI Datepicker unclickable, so that it's essentially just displaying a date? I tried

$("#calendar").datepicker({ 
    disabled: true,
    altField: '#note_date',
    maxDate: 0
});

but it didn't work. Thanks for reading.

+1  A: 

Something like this?

Example: http://jsfiddle.net/Ay6Nv/

$('#calendar').datepicker({
    beforeShowDay: function(date) {
        return [new Date(this.value).getDate() == date.getDate()];
    }
});​
patrick dw