I need to enable only particular dates in a calendar, disabling all the other dates.
I tried with onCompleteTopics
and onBeforeShowDayTopics
using Struts2-jQuery DatePicker without success.
With raw jQuery I am able to do it as shown in this Fiddle
I need the same functionality using Struts2-jQuery DatePicker.
To enable only a particular set of dates (Close Event in the showcase) in Struts2-jQuery DatePicker, you need to use the
onBeforeShowDayTopics
:Note: this feature was buggy in the past, so be sure you are not using an old version of the plugin.
Since 3.3.0 it is fixed and it works fine.