在rails 3.2.13项目中,我使用的是bootstrap datepicker插件。现在日历正在通过禁用以前的日期来显示当前日期。现在我需要限制日历选择当前日期+下一个30天。
我正在使用下面的代码禁用之前的日期,
function currentDatePicker(id){
var nowTemp = new Date();
var now = new Date(nowTemp.getFullYear(), nowTemp.getMonth(), nowTemp.getDate(), 0, 0, 0, 0);
$('#' + id).datepicker({