datepicker Calendar all days not clickable
Hi,
I have an event calendar.
It´s
shows me the days that are booked/free
. It works great too.
I would like to go over it with the mouse without being able to click the days.
I do not want to be able to click the days..
Is that possible?
Hier my code.
<script type="text/javascript">
var highlight_dates = ['1-3-2018','1-4-2018','18-4-2018','28-4-2018'];
$(document).ready(function(){
$('#datepicker').datepicker({
beforeShowDay: function(date){
var month = date.getMonth()+1;
var year = date.getFullYear();
var day = date.getDate();
// Change format of date
var newdate = day+"-"+month+'-'+year;
// Set tooltip text when mouse over date
var tooltip_text = "Booking " + newdate;
// Check date in Array
if(jQuery.inArray(newdate, highlight_dates) != -1){
return [true, "highlight", tooltip_text ];
}
return [true];
}
});
});
</script>
Can you help me please.