ajax - javascript with laravel

Job ID: 34077205

Budget: $10 – $30 USD

hi how are you
i have fullcalendar project with laravel
just i need when see event on fullcalendar
when click i need open pop up and see & edit this even with database
like this code or you can use your idea
_____this code in other project_____
/ Popup edit form for task/reminder/event
eventClick: function(info){
$('#exampleModal').modal('show')
var csrf = "{{ csrf_token() }}";
$.ajax({
url : "{{ route('calendar-event') }}",
data: {_token:csrf,id:info.event.id,type:info.event.extendedProps.type},
type: "POST",
beforeSend: function(){
$("#loader").show();
}
}).done(function(e){
$("#modal-content").html(e);
/* load date picker in edit form /
$('.datePicker').datepicker({
format : 'yyyy-mm-dd',
autoclose : true
})
/* load time picker in edit form /
$('.timepicker').timepicker({
showInputs: false,
showMeridian: false,
showSeconds: true
})
})
},
});
Related categories: PHP JavaScript AJAX jQuery / Prototype Laravel