【发布时间】:2017-08-08 16:40:24
【问题描述】:
您好,我需要禁用未来的日期,我已经尝试了所有方法 但我无法请让我知道我错在哪里。
<div class="input-group date">
<input type="text" class="form-control pull-right" id="datepicker2" placeholder="Date of Join" ng-model="DateofJoining">
<div class="input-group-addon"></div>
</div>
$('#datepicker2').datepicker({
autoclose: true,
maxDate: new Date()
});
我什至也尝试过使用 angularjs,但无法禁用它们,请告诉我如何禁用未来的日期。
我正在使用 bootstrap-datepicker.js 来创建日期选择器。
【问题讨论】:
标签: jquery angularjs datepicker