I have this code:
$(document).ready(function () {
/*var event_list = $('#event_list');*//*gil70l*/
//$(document).ready(function () {
//
$("#btnsearch").click(function () {
var res = $("#txtSearch").val();
res = res.substring(0,19);
date = moment(res, "DD/MM/YYYY HH:mm");
alert(date);
$("#calendar").fullCalendar('gotoDate', date);
$('.fc-day[data-date="' + date + '"]').css('background-color', "red");
//$('#calendar').find('.fc-day-number[data-date="' + date + '"]').css('background-color', '#FAA732');
})
but I cannot highlight the day on which I position myself with the function 'gotoDate'.