【发布时间】:2016-08-22 10:26:14
【问题描述】:
以下代码块:
$(".datepicker").datepicker( {
format: ' yyyy', // Notice the Extra space at the beginning
viewMode: 'years',
minViewMode: 'years',
startDate: '-100y',
endDate: '-17y'
});
输出:
我有 2 个问题:
如何使不可点击的年份不可见?
如果用户在输入字段中键入年份,然后单击此输入字段,则所选年份应显示为已标记。
这将是期望的结果:
目前我正在学习the following API documentation,还没有找到相关的部分。有人能帮我吗?几年前我已经这样做了,但不幸的是我不记得怎么做了。
【问题讨论】:
标签: twitter-bootstrap bootstrap-select bootstrap-selectpicker