如何使用“日期框”在输入文本中设置/显示起息日

时间:2018-09-05 02:59:59

标签: javascript php html calendar datebox

我一直在寻找Datebox,如何在不更改日历中默认的当前日期的情况下在输入文本中保留值。 我从数据库调用的输入文本中的值可能有所不同。

我想要: -禁用上一个日期/月份/年份(假设为2015-09-14),但继续启用日历中当前月份或接下来的2个月。 -如果输入文本中的值为2015-09-14,则日历中所选的日期值仍为当前日期/月。

到目前为止我尝试过的脚本:

enter image description here

JavaScript:

enter image description here

输出:

already disabled but empty value in input text enable current month but empty value in input text

预期:

no empty value, still disable no empty value, selected date based on current date/month

0 个答案:

没有答案