Collect data of all select/resize/drop events - fullcalendar
<p>I want to collect data (event start, event end) of all <code>select</code> events (also <code>resize</code> and <code>drop</code> if triggered) from fullcalendar plugin (<code>agendaWeek</code> view) to handle it later in PHP.</p>

<p>I tried to do something like this:</p>

<pre><code>select: function(start, end) {
    var start = moment(start).format("YYYY-MM-DD HH:mm:ss");
    var end = moment(end).format("YYYY-MM-DD HH:mm:ss");

    $('.some_start').val(start);
    $('.some_end').val(end);
},
eventResize: function(event) {
    $('.some_start').val(event.start.format("YYYY-MM-DD HH:mm:ss"));
    $('.some_end').val(event.end.format("YYYY-MM-DD HH:mm:ss"));
},
eventDrop: function(event) {
    $('.some_start').val(event.start.format("YYYY-MM-DD HH:mm:ss"));
    $('.some_end').val(event.end.format("YYYY-MM-DD HH:mm:ss"));
}
</code></pre>

<p>But it obviously overwrites input fileds after each event.</p>

<p>Thanks in advance !</p>