longbill / jquery-date-range-picker

A jQuery plugin that allows user to select a date range
MIT License
1.12k stars 579 forks source link

How to get data in database to disable dates #445

Closed david0613 closed 5 years ago

david0613 commented 5 years ago

Hi, Could you tell me how to get dates in my database, to have an array to disable in the JS code. Thank you

holtkamp commented 5 years ago

You can use the beforeShowDay callback, discussed in a number of issues:

https://github.com/longbill/jquery-date-range-picker/issues?q=is%3Aissue+beforeShowDay+is%3Aclosed