title: FullCalendar delete event with button
body: <p>I would like to start off my question with establishing exactly what I am using.
  I am using a jquery calendar app devlopped by Adam Shaw called FullCalendar. <br><br>Link: <a href="http://arshaw.com/fullcalendar/" rel="nofollow">arshaw.com/fullcalendar/</a>
  <br><br>I want to be able to add a delete feature, so that I can delete events by clicking a delete button inside each event, and send an ajax POST to tell a mysql database to DELETE where id equals the id of the event I just deleted. However, looking through the doccumentation, I have been unable to find a way to delete an event, yet alone anything to do with that and mysql databases. If anyone would be able to help that would be greatly appreciated! Thanks, in advance. </p>
  
  <p>This is my code:</p>
  
  <p><strong>JAVASCRIPT</strong></p>
  
  <pre><code>&lt;script&gt;
      var height = "innerHeight" in window 
                 ? window.innerHeight
                 : document.documentElement.offsetHeight; 
  
      var newHeight = parseInt(height)-112;   
  
      $(document).ready(function() {
  
  
  
          $('#calendar').fullCalendar({
              header: {
                  left: 'prev,next today',
                  center: 'title',
                  right: 'month,agendaWeek,agendaDay'
              },
  
              allDay : false,
              slotMinutes: &lt;?php echo $tee_inc; ?&gt;,
              minTime: "&lt;?php echo $tee_open; ?&gt;",
              maxTime: "&lt;?php echo $tee_close; ?&gt;",
              height: newHeight,
              disableDragging: true,
              disableResizing: true,          
              defaultView: 'agendaDay',
              editable: true,
              events: [
                  &lt;?php
                      $i=-1;
                      foreach( $tee_time_start as $tts )  {
                          $i++;
                          echo '{'; echo "\n";
                          echo "id : '".$tee_time_id[$i]."',"; echo "\n";
                          echo "title : '".$tee_first_name[$i]." ".$tee_last_name[$i]." -- ".$tee_holes[$i]." Holes -- ".$tee_phone_number[$i]." ----- &lt;a href=\"#\" id=\"delete_time_".$tee_time_id[$i]."\"&gt;Delete&lt;/a&gt; ',"; echo "\n";
                          echo "start : '".$tee_time_start[$i]."',"; echo "\n";
                          echo "end : '".$tee_time_end[$i]."',"; echo "\n";   
                          echo 'allDay : false'; echo "\n"; 
                          echo '},'; echo "\n";
                      }
  
                  ?&gt;
              ],
              eventDrop: function(event, delta) {
                  alert(event.title + ' was moved ' + delta + ' days\n' +
                      '(should probably update your database"+delta+")');
              },
              loading: function(bool) {
                  if (bool) $('#loading').show();
                  else $('#loading').hide();
              },
  
  
  
          });
  
      });
  
  &lt;/script&gt;
  </code></pre>