jQuery - Calendar plugin, pre selected dates on multiple select
<p>Im using a calendar plugin for jQuery, im using the 'selecting multiple dates' demo which is here <a href="http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiple.html" rel="nofollow">http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerMultiple.html</a> </p>

<p>Im using the demo code for starters which is as follows:</p>

<pre><code>&lt;script type="text/javascript" charset="utf-8"&gt;
$(function()
{
    $('.date-pick')
        .datePicker(
            {
                createButton:false,
                displayClose:true,
                closeOnSelect:false,
                selectMultiple:true
            }
        )
        .bind(
            'click',
            function()
            {
                $(this).dpDisplay();
                this.blur();
                return false;
            }
        )
        .bind(
            'dateSelected',
            function(e, selectedDate, $td, state)
            {
                console.log('You ' + (state ? '' : 'un') // wrap
                    + 'selected ' + selectedDate);

            }
        )
        .bind(
            'dpClosed',
            function(e, selectedDates)
            {
                console.log('You closed the date picker and the ' // wrap
                    + 'currently selected dates are:');
                console.log(selectedDates);
            }
        );
});
&lt;/script&gt;
</code></pre>

<p>This works great, i want to be able to pre select dates somehow, im getting dates from the database, and i want to be able to show them as checked when i click the link to open the calendar.</p>

<p>If anyone has any experience with this, i would love some help ... im not a jQuery nut at all, so its hard to figure this out.</p>

<p>Cheers,</p>
