How to set / appear value date in input text using Datebox

273 Views Asked by At

I have been looking for Datebox how to keep a value in input text without changing the default current date in calendar. The value in input text I called from database and it may different.

I want: - Disable previous date/month/year (let say 2015-09-14) but keep enabling for current month or next 2 months in calendar. - If the value in input text is 2015-09-14, the selected date value in calendar still on the current date / month.

Scripts I have tried so far:

enter image description here

JavaScript:

enter image description here

Output:

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

Expected:

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

0

There are 0 best solutions below