franz
franz

Reputation: 19

Beforeshowday - Jquery - Datepicker

I manage to block a list of dates in the jquery datepicker.

After having displayed the datepicker, I'd like to use the "beforeShowDay function" to check if a list of dates is available or not.

For each date of the list, I'd like to alert("available") or ("not available"). Someone told me that I need to "Declare it as a standalone function and re-use it in this case." but I don't know how.

Can you help me ?

Thank you !

Upvotes: 1

Views: 122

Answers (1)

Paraíso
Paraíso

Reputation: 384

By declaring a standalone function, you should only need to declare a function Ex.:

var validateDay = function(){
//somecode
}

But you can find a post in here that has a implementation similar to what you want to do.

Upvotes: 1

Related Questions