Bootstrap calendar control to show up to current week in active. Any solution would be grateful received.
For exampe: consider today is Tuesday, but calendar should up to Sunday in active. ie last all days & the current week in active?
I'm using php, javascript, jquery and bootstrap. I used this function called available:
$('#fromdate').datepicker({beforeShowDay: available, dateFormat: 'mm-dd-yy'});
If I get current week and last two week dates. I will store in to any array and call the function. So the dates which are in array will be enabled, and the dates which are not in array are disabled.
You could use the minDate
option
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.