0
开始挑选日期

通常,在选择“today”附近的日期时,默认行为(选择一天中的某一天)效果很好,但在选择生日时,我希望用户从年份开始挑选日期。我查看了文档,但找不到任何选项来执行此操作。我希望datepicker首先打开多年选择。如图这样的画面:Bootstrap datepicker:从

enter image description here

我使用这个插件:https://bootstrapdatepicker.readthedocs.io/en/latest/

+0

你可以更精确,你使用什么日期选择器?它是引导UI日期选择器还是其他? – 112g

+0

我使用这个插件:https://bootstrap-datepicker.readthedocs.io/en/latest/ –

回答

1

使用startView选项(0天,1个月,2年,请参阅插件文档):

$('#date').datepicker({ 
    startView:2// 
});