Reputation: 693
I would like to use this date picker:
http://jqueryui.com/datepicker/
But I want to mark dates based on a database query. So if I click on the date picker I can see the days that are not used and thus red coloured, and not click-able.
Upvotes: 0
Views: 248
Reputation: 10423
You must implement a function which knows about the locked dates. This function is registered with beforeShowDay
. Since you need to run this JavaScript client side you will most likely produce an array of available/blocked days and have the JS function use it - this is faster than doing a server round trip in that callback.
Upvotes: 1