JQuery Datepicker – no default date

I got round the problem using a hidden altField:

<div id="DatePicker"></div>
<input type="hidden" value="" name="Date" id="Date" />

and the following script:

    $(function () {

            altField: '#Date', // ID of the hidden field
            altFormat: 'dd/mm/yy'

        // Remove the style for the default selected day (today)

        // Reset the current selected day

Then, I used the hidden #Date field in my validation routines.

Leave a Comment