突出显示具有可变颜色的Bootstrap Datepicker中的特定日期

时间:2016-08-22 20:21:26

标签: javascript jquery css twitter-bootstrap datepicker

我知道如何使用beforeShowDay将日期添加到日期。

如何在一天中使用特定颜色,而不是为当天分配css类?

类似的问题:

How to Highlight specific dates in the datepicker

Add class to a multiple/specific day in bootstrap datepicker?

1 个答案:

答案 0 :(得分:1)

编辑库..在选项中添加新的变量突出显示。然后,如果使用数据属性选择器

突出显示该选项
$( "td[data-day='08/23/2016']" ).css('background','blue');