I'm trying to show only custom dates with bootstrap datepicker: http://bootstrap-datepicker.readthedocs.org/en/latest/index.html.
Can you help me?
I'm trying to show only custom dates with bootstrap datepicker: http://bootstrap-datepicker.readthedocs.org/en/latest/index.html.
Can you help me?
I think instead disable past/future dates you mean enable only some picked dates, like events in a calendar. And yes: even this is possible providing an
available
function: Bootstrap Datepicker restrict available dates to be selectedYou can use
beforeShowDay
:Live demo
The answer is available under that link:
http://www.eyecon.ro/bootstrap-datepicker/
Look for the section "Disabling dates in the past and dependent disabling."