After the animation is complete I make an ajax call as shown below, but nothing happens there. Ajax call doesn't happen at all. Nothing is sent to the php file processing ajax request. I don't understand what is wrong or what I have missed. Thanks in advance!!!
$('.open, .closed, .appoint').each(function (index) {
var $control = $('#' + (firstDay + index));
$control.animate({
top: pos[firstDayNext + index].top,
left: pos[firstDayNext + index].left + (($control.html() < 10) ? 5.7 : 0),
}, (400 + (25 * index)));
}).promise().always(function(){
$.ajax({
type:"GET",
url:"ajax/showingAppointmentForMonth.php",
dataType:'JSON',
data:"year=" + currentYear + "&month=" + currentMonthInteger + "&id=" + "<?php echo $id;?>",
success:function(data){
//do something with the data
}
});
});