Highlight certain dates on bootstrap-datepicker

后端 未结 5 637
耶瑟儿~
耶瑟儿~ 2020-12-18 23:06

I\'m using the bootstrap-datepicker to check the days where my website got sales and I want to display or highlight the dates there was at least one sale. I can pass the dat

5条回答
  •  星月不相逢
    2020-12-18 23:27

    $('#xxx').datepicker()
      .on('onRender', function(ev){
        if (ev.date.valueOf() == your date){
          return 'highlight';
        }
      });
    

    Might do the trick, although I am not sure.

提交回复
热议问题