I want to disable a date range in joomla calendar. Only the remaining days can be select. I have no idea how to do it. Plz help.
e.g. If I say 2012-2-20 to 2012-3-20 then only days in this range can be select all other has to be disable(or can not select).
Joomla Calendar Doc http://docs.joomla.org/API16:JHtml/calendar
Set minDate
and maxDate
for your date limit, i.e.
$("#start_date").datepicker({
dateFormat:'yy-mm-dd',
showOn: 'button',
buttonImageOnly: true,
minDate: newmindate ,
maxDate: newmaxdate
});
Set variable newmindate
and newmaxdate
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With