kbwood / datepick

jQuery Datepicker Plugin
87 stars 39 forks source link

How to clear dates values #38

Closed LoAlbume closed 8 years ago

LoAlbume commented 8 years ago

Hi, i'm developing a project with this plugin but i have some troubles: when i select the first date of a range, i check if the next 7 days are in an array containing some dates. If the selected date is in it, i need take the datepicker back to the initial state where no date is selected... I'm trying create a function for the "onSelect" option, but I don't know how to clear everything. How can I do it?

Thank you.

kbwood commented 8 years ago

You can use the clear command:

$(this).datepick('clear');