Style specific dates in jquery ui datepicker plugin

I am writing an application for reserving training objects, and I want the instructor to leave the object and know when the object is already reserved for a certain date.

I am using the jqery-UI datepicker plugin and I want to style the table cells differently for these reserved dates. I just can't figure out how to pass dates to the plugin so that I can change the class for these dates in the calendar.

+3
source share
1 answer

I would use the beforeShowDay event to handle this.

http://api.jqueryui.com/datepicker/#option-beforeShowDay

+6
source

Source: https://habr.com/ru/post/1709210/


All Articles