unselect date in cjuidatepicker


cjuidatepicker shows the current day selected by default. I would like to unselect it. I found that I should use this:

$('#datepicker').datepicker('setDate', null);

I tried it but it’s not working

setDate( date )Returns: jQuery (plugin only)

Sets the date for the datepicker. The new date may be a Date object or a string in the current date format (e.g., "01/26/2009"), a number of days from today (e.g., +7) or a string of values and periods ("y" for years, "m" for months, "w" for weeks, "d" for days, e.g., "+1m +7d"), or null to clear the selected date.


Type: String or Date

The new date.


1 Like

thanks for the information, but the problem is that this doesn’t work!!