I'm creating an application with laravel and fullcalendar and I want to create a new event when I hit a button and let it see immediately, I could make it create it without problems, the question is that it is not updated until it recharges the page. This is my code:
$('#guardar').click(function(){
$.ajax({
url:"/calendar/crear",
type:"POST",
data:$("#formulario_guardar").serialize(),
}).done(function(uno){
$('#exampleModal').modal('hide');
$("#calendar").fullCalendar( 'refetchEvents' );
});
It is not updated, if someone knows why I appreciate the information.