Bootstrap 日期选择器弹出未显示选定日期

时间:2021-04-20 16:46:12

标签: javascript angular-ui-bootstrap bootstrap-datepicker

我正在使用 Bootstrap 日期选择器来显示日期选择器对话框。

我正在尝试突出显示当前选定的日期和今天的日期。

如下图所示。

enter image description here

我正在使用以下选项来显示我的小部件。

        datepicker({
            autoclose: true,
            keyboardNavigation: false,
            todayHighlight: true,
            clearBtn: true,
            endDate: new Date()
        });

但是上面的代码只是突出显示今天的日期,而不是已经选择的日期。

请帮助我使用正确的选项来突出显示今天和所选日期。

0 个答案:

没有答案
相关问题