I know that sound crasy but I need to allow choosing disable dates here: https://eonasdan.github.io/bootstrap-datetimepicker/
Why? I need to color dates with less possibility to booking, and color green dates where possibility to book is bigger so I write:
<script> $(function () { $('#start').datetimepicker({ format: 'YYYY/MM/DD', enabledDates: [ moment("05/21/2016"), moment("05/22/2016"), moment("05/23/2016"), moment("05/24/2016"), ], }); }); </script> <style type="text/css"> .bootstrap-datetimepicker-widget table th.disabled, .bootstrap-datetimepicker-widget table th.disabled:hover { background: #FF9088 !!important; border-radius: 0px !important; color: #fff !important; border: 1px solid #fff !important; } .bootstrap-datetimepicker-widget table td.disabled, .bootstrap-datetimepicker-widget table td.disabled:hover { background: #FF9088 !important; border-radius: 0px !important; border: 1px solid #fff !important; color: #fff !important; } .bootstrap-datetimepicker-widget table td span.disabled, .bootstrap-datetimepicker-widget table td span.disabled:hover { background: #FF9088 !important; border-radius: 0px !important; border: 1px solid #fff !important; color: #fff !important; } .day { background: rgba(88, 204, 0, 0.52) !important; border-radius: 0px !important; border: 1px solid #fff !important; } </style> As you can see , I have enable dates in green color and other dates are disable and its in red color... but I need to allow visitors to choose also disable dates, not just enable...
I use enable and disable just to color dates on calendar...
So how to allow to choose disable dates also ?