嗨我需要禁用未来的日期,我试过所有的方式 但我无法让我知道我错了。如何使用angularjs和jquery禁用datepicker的未来日期
<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用于创建日期选择器。